Hello,
in my script i have this lines of code in a while cycle:
..
let j=i+1
t_prod_$i = `cat myfile.csv | grep world | cut -d ";" -f$j`
let i+=1
...
So if i try an echo $t_prod_$i at the end of the cycle i cannot see
the right value obtained by `cat myfile.csv | grep world | cut -d ";" -f
$j` but I receive an error:
./myscript.sh[17]: t_prod_1: not found.
how i should assign output of the command between ` ` to the variable
t_prod_$i (so i will have t_prod_1= ... t_prod_2=... )??