Using a two-level for
loop and seq
works fine, and the code
for i in `seq 0 3`; do for j in `seq 0 3`; do echo $i $j; done; done
gives the expected output:
0 0
0 1
1 0
1 1
But if I want a more customised list of numbers:
for i in '-1 4.5'; do for j in '0 -2.2'; do echo $i $j; done; done
I get the output
-1 4.5 0 -2.2
Is there an easy way to do this?