GNU Coreutils “seq”

the manual page.

Why do I keep forgetting the name of this wonderful little helper?

seq prints a sequence of numbers to standard output. Synopses:

     seq [option]... last
     seq [option]... first last
     seq [option]... first increment last

seq prints the numbers from first to last by increment. By default, each number is printed on a separate line. When increment is not specified, it defaults to ‘1’, even when first is larger than lastfirst also defaults to ‘1’. So seq 1 prints ‘1’, but seq 0 and seq 10 5 produce no output. Floating-point numbers may be specified (using a period before any fractional digits).


Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.