Print a sequence of numbers.

Synopsis

seq [OPTION]... LAST

seq [OPTION]... FIRST LAST

seq [OPTION]... FIRST INCREMENT LAST

Description

Print numbers from FIRST to LAST, in steps of INCREMENT. Runs in the just-bash WASM shell inside SLICC.

Options

-s, --separator=STRING Use STRING to separate numbers (default: newline).

-w, --equal-width Equalize width by padding with leading zeroes.

Examples

$ seq 5

Print 1 through 5.

$ seq 2 2 10

Print 2, 4, 6, 8, 10.

$ seq -s', ' 3

Print 1, 2, 3 separated by commas.

See Also

for, echo