This is my file
1 2 3
4 5 6
7 8 9
Following is my code
i=0;
while read line;do
arry_$i="${line[@]}";
i=$(($i+1));
done < file.txt
IFS=' ';eval "arr_00=($arr_0)"
IFS=' ';eval "arr_11=($arr_1)"
IFS=' ';eval "arr_22=($arr_2)"
Following is the output
arry_0=1 2 3: command not found
arry_1=4 5 6: command not found
arry_2=7 8 9: command not found
When I try to assign file each line to variable noticed an "command not found"
Thank you for suggestions