SEQ(1x) 1x SEQ(1x)

This manual page is part of Cross-Unix Documentation which is an attempt to provide documentation of similarities and (noteworthy) differencies between Unix-like systems. To be used as an addition to the POSIX standard.

seqprint a sequence of numbers

seq [-w] [-f format] [-s separator] [first [steps]] last

seq prints a sequence of numbers, one per line (default), from first (default 1), to near last as possible, in increments of steps (default 1). When first is larger than last, the default step is -1.

All numbers are interpreted as floating point.

format
Use a printf(3) style format to print each number. it can contain character escape sequences in backslash notation as defined in ANSI X3.159-1989 (“ANSI C89”). The default is %g. This flag is absent in BusyBox.
separator
Use separator to separate numbers, it can contain character escape sequences in backslash notation as defined in ANSI X3.159-1989 (“ANSI C89”). The default is \n.
equalize width by zero-padding

From NetBSD manpage: The seq command first appeared in AT&T UNIX v8. A seq command appeared in NetBSD 3.0. This command was based on the command of the same name in Plan 9 From Bell Labs and the GNU coreutils. The GNU seq command first appeared in the 1.13 shell utilities release.

NetBSD 8.0, GNU coreutils 8.30, BusyBox 1.30.1.

Haelwenn (lanodan) Monnier <contact+c-u-d@hacktivis.me>

2019-03-05 Linux 6.12.21-gentoo-x86_64