#!/bin/bash rm commands.sql -v # File to read file="dump.txt" # Counter for line number line_number=1 # Read each line of the file while IFS= read -r line; do # Store the line in a variable variable_name="line_$line_number" declare "$variable_name"="$line" # Increment the line number counter ((line_number++)) done < "$file" # Print the variables to verify for ((i=1; i> commands.sql done echo converted $file to sql statements