ksh: Iterate through a range
Posted
by sgreeve
on Stack Overflow
See other posts from Stack Overflow
or by sgreeve
Published on 2009-10-19T20:56:33Z
Indexed on
2010/04/25
6:13 UTC
Read the original article
Hit count: 284
How can I iterate through a simple range of ints using a for loop in ksh?
For example, my script currently does this...
for i in 1 2 3 4 5 6 7
do
#stuff
done
...but I'd like to extend the range way above 7. Is there a better syntax?
Thanks!
© Stack Overflow or respective owner