S6-SEQ(1)

NAME
s6-seq - print a sequence of numbers

SYNOPSIS
s6-seq [-w] [-s separator] limits

DESCRIPTION
limits can be one, two or three arguments:

•   Three arguments are interpreted as first, increment and last, in this order.

•   Two arguments are interpreted as first and last, and increment defaults to 1.

•   One argument is interpreted as last, and first and increment both default to 1.

s6-seq prints all unsigned integers from first to last inclusive, with a step of increment, with a newline after each integer.

It then exits 0.

s6-seq is similar to the GNU ‘seq’ program. However, it does not handle negative numbers, floating point numbers or printf-style formatting.

OPTIONS

-w  Fixed width. The numbers will all be printed with the same width; smaller numbers will have leading ‘0’ characters.

-s separator
    Print separator after each number. Default is a newline. If separator is the empty string, a null character will be printed.

EXIT STATUS

111 Temporary error.

100 Permanent error, such as a misuse.

127 Unable to execute program - not found.

126 Unable to execute program - other reason.

SEE ALSO
s6-basename(1), s6-cat(1), s6-chmod(1), s6-chown(1), s6-clock(1), s6-cut(1), s6-dirname(1), s6-dumpenv(1), s6-echo(1), s6-env(1), s6-expr(1), s6-false(1), s6-format-filter(1), s6-grep(1), s6-head(1), s6-hiercopy(1), s6-linkname(1), s6-ln(1), s6-ls(1), s6-maximumtime(1), s6-mkdir(1), s6-mkfifo(1), s6-nice(1), s6-nuke(1), s6-pause(1), s6-printenv(1), s6-quote(1), s6-quote-filter(1), s6-rename(1), s6-rmrf(1), s6-sleep(1), s6-sort(1), s6-sync(1), s6-tai64ndiff(1), s6-tail(1), s6-touch(1), s6-true(1), s6-uniquename(1), s6-unquote(1), s6-unquote-filter(1), s6-update-symlinks(1), seekablepipe(1)

This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6-portable-utils/s6-seq.html

AUTHORS
Laurent Bercot Alexis <flexibeast@gmail.com> (man page port)