Any idea how I can declare a bash array with a variable embedded?
For example, i is a integer that increments in a for loop. I want to continue to increment i and append it to the end of the array being declared like so:
declare -a DB$iFIELDS
DB$iFIELDS[$j]=blah blah blah
printf:printf -v DB${i}FIELDS[$j] '%s' "blah blah blah". By the way, Bash is not exactly supposed to be used this way...