This is probably a lame question. But I get 3 arguments from the command line [bash script]. Then I try to use them in a for loop.
for i in {$1..$2} do action1 done
This does not seem to work, and if $1 is "0" and $2 is 2 , it prints {0..2}' and calls action1` only once. I have referenced various examples, and this seems to be the correct use. Can someone please tell me what needs to be fixed here?
Thanks in advance.
command-line bash loops for-loop arguments
ru4mqart668op514 Apr 17 '11 at 2:45 2011-04-17 02:45
source share