2015-12-29 08:00:40 -05:00
|
|
|
# seq
|
|
|
|
|
2022-12-04 08:53:34 +01:00
|
|
|
> Output a sequence of numbers to `stdout`.
|
2025-01-18 18:45:33 +05:30
|
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/seq-invocation.html>.
|
2015-12-29 08:00:40 -05:00
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
man, sudo, mount, file, curl, ps, seq, gdb, cat, upower, cal: add option placeholders (#15915)
2025-03-11 08:07:57 +02:00
|
|
|
`seq {{[-s|--separator]}} " " 5 3 20`
|
2018-11-30 13:10:37 -05:00
|
|
|
|
2018-12-03 11:52:57 -05:00
|
|
|
- Format output width to a minimum of 4 digits padding with zeros as necessary:
|
2018-11-30 13:10:37 -05:00
|
|
|
|
man, sudo, mount, file, curl, ps, seq, gdb, cat, upower, cal: add option placeholders (#15915)
2025-03-11 08:07:57 +02:00
|
|
|
`seq {{[-f|--format]}} "%04g" 5 3 20`
|