It's probably a lame question. But I am getting 3 arguments from command line [ bash script ]. Then I am trying to use these in a for loop.
for i in {$1..$2}
do action1
done
This doesn't seem to work though and if $1
is "0"
and $2
is 2
it prints {0..2}' and calls
action1` only once. I referred to various examples and this appears to be the correct usage. Can someone please tell me what needs to be fixed here?