From: John N S Gill (jng at domain renre-europe.com)
Date: Wed 03 May 2000 - 13:00:22 IST
Try:
for H in `seq 0 255`; do
...
done
> any easy to expand out a series of numbers in bash?
>
> ie i want to do:
>
> for H in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 etc.. etc.. ; do
> ..
> .
> .
> done
>
> but something like
>
> for H in 0 to 254 ; do
> .
> .
> .
> done
>
> would be much easier. the [..] thing doesnt seem to be evaluated..
>
> any ideas?
>
> --paulj
>
>
> --
> Irish Linux Users' Group: ilug at domain linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at domain linux.ie
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:00 GMT