$ seq 1 5 1 2 3 4 5
Generates the sequence of numbers from 1 to 5
Very useful to implement traditional ‘for’ loops:
for i in `seq 1 10`;do echo number $1;done
Unbelievable,
OS X tiger (Darwin 8.11.1) DOES NOT include this utility.
What they were thinking about at Cupertino?
sigh… Today I needed it.
Pedro.
Right… I have just checked it on OS X Leopard (Darwin 9.4.0) and it does not include this utility either… I will have to phone Cupertino ;-)
Add your comment below, or trackback from your own site.
Subscribe to these comments.
Be nice. Keep it clean. Stay on topic. No spam.
You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Name*:
Email*:
Website:
*Required Fields
$ chmod -R u+rX
Very useful to implement traditional ‘for’ loops:
for i in `seq 1 10`;do echo number $1;done
Unbelievable,
OS X tiger (Darwin 8.11.1) DOES NOT include this utility.
What they were thinking about at Cupertino?
sigh… Today I needed it.
Pedro.
Right… I have just checked it on OS X Leopard (Darwin 9.4.0) and it does not include this utility either… I will have to phone Cupertino ;-)