0

I would like to generate 2 values columns (actualy (x,y) for y=x^2 function).

So I did under Bash:

echo $(for((i=0;i<100;i++)); do printf "%3d %3d\n" $((i)) $((i*i)); done)

But I get a single row with (i,i*i) sequence, not 2 columns.

I tried to add "-e" option for echo, but this doesn't work too.

If someone had a trick, this would be fine.

0 Answers0