seq

Print a sequence of numbers to standard output

SYNTAX
      seq [OPTION]... [FIRST [STEP]] LAST...

OPTIONS

`-f FORMAT'
`--format=FORMAT'
     Print all numbers using FORMAT; default `%g'.  FORMAT must contain
     exactly one of the standarding float output formats `%e', `%f', or
     `%g'.

`-s STRING'
`--separator=STRING'
     Separate numbers with STRING; default is a newline.  The output
     always terminates with a newline.

`-w'
`--equal-width'
     Print all numbers with the same width, by padding with leading
     zeroes.  (To have other kinds of padding, use `--format').

`seq' prints the numbers from FIRST to LAST by STEP.

By default, FIRST and STEP are both 1, and each number is printed on its own line. All numbers can be reals, not just integers.

"Quality in a product or service is not what the supplier puts in. It is what the customer gets out and is willing to pay for. A product is not quality because it is hard to make and costs a lot of money, as manufacturers typically believe. This is incompetence. Customers pay only for what is of use to them and gives them value. Nothing else constitutes quality." - Peter Drucker

Related commands:

expr - Evaluate expressions
for - Expand words, and execute commands
nl - Number lines and write files

Equivalent Windows NT commands:

FOR /L - Conditionally perform a command several times.



Back to the Top

Simon Sheppard
SS64.com