1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/seq.md

21 lines
451 B
Markdown
Raw Normal View History

# seq
> Output a sequence of numbers to `stdout`.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/seq-invocation.html>.
- 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|--separator]}} " " 5 3 20`
2018-11-30 13:10:37 -05:00
- Format output width to a minimum of 4 digits padding with zeros as necessary:
2018-11-30 13:10:37 -05:00
`seq {{[-f|--format]}} "%04g" 5 3 20`