Using the code below. It will not copy the last line in the file.
I have tried the following means of reading the file.
"while IFS=$'\n' read -d '' -r -a myLine" or "while IFS=$'\n' read -r -a myLine"
while read -a myLine
do
for ((i=0;i<"${#myLine[@]}";i++))
do
temp_array[$i]+=" ${myLine[$i]}"
done
done < $1
File contains numbers like:
1 2
3 4
5 6
when echo is used to see what is in the array i get
1 2
3 4
this is where it drops off the last line.