How do I make i skip by 2's in Unix?
Hi,
In linux, you can do something like:
for i in {1..100..2}; do echo "hi $i times"; done
and it will do this:
hi 1 times
hi 3 times
hi 5 times
etc...
I'm trying this in Solaris 10, but it will interpret {1..100..2} literally, like this:
hi {1..100..2} times
Any idea how I can get this working in Solaris 10? Thanks!
|