mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 09:44:55 +02:00

Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
19 lines
317 B
Markdown
19 lines
317 B
Markdown
# seq
|
|
|
|
> Output a sequence of numbers to stdout.
|
|
|
|
- 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`
|