cmd

Generating sequence of numbers

$ seq 1 5
1
2
3
4
5

Generates the sequence of numbers from 1 to 5

3 Comments

  • On 08.04.08 n0str0m0 said:

    Very useful to implement traditional ‘for’ loops:

    for i in `seq 1 10`;do echo number $1;done

  • On 08.19.08 Pera said:

    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.

  • On 08.19.08 rafacas said:

    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 ;-)

speak up

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>

*Required Fields