I would do
for i in `seq 0 2 10`; do echo $i; done
(although, of course, seq 0 2 10 itself will produce the same result).
Note that seq allows for a floating point number (for example, seq .5 .25 3.5 ), but the bash extension extensions allow only integers.
chaos Jun 08 '09 at 17:35 2009-06-08 17:35
source share