<quote who="Douglas Stalker">
> In a shell script, is the a better (i.e.: more elegant) way to get a
> variable to cycle from 1 to another value (such as 100)
>
> Currently I am using:
>
> $ I=1 ; while [ "$I" -le "10" ]; do echo $I ; I=`expr $I + 1`; done
for i in $(seq 1 10); do
echo $i
done
- Jeff
--
linux.conf.au 2004: Adelaide, Australia http://lca2004.linux.org.au/
"Laughter is a force for democracy." - John Cleese
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug