seq
v0.0.18
seq [OPTION]... LAST
seq [OPTION]... FIRST LAST
seq [OPTION]... FIRST INCREMENT LAST";
Options
--separator,-s-
Separator character (defaults to \n)
--terminator,-t-
Terminator character (defaults to \n)
--widths,-w-
Equalize widths of all numbers by padding with zeros
--format,-f-
use printf style floating-point FORMAT
Examples
Sequence from 1 to 10:
seq 10
Every 3rd number from 5 to 20:
seq 5 3 20
Separate the output with a space instead of a newline:
seq -s " " 5 3 20
Format output width to a minimum of 4 digits padding with zeros as necessary:
seq -f "%04g" 5 3 20
The examples are provided by the tldr-pages project under the CC BY 4.0 License.
Please note that, as uutils is a work in progress, some examples might fail.