2015-12-29 13:00:40 +00:00
|
|
|
# seq
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
> Output a sequence of numbers to stdout.
|
2021-03-30 15:00:58 +01:00
|
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/seq-invocation.html>.
|
2015-12-29 13:00:40 +00: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:
|
|
|
|
|
|
|
|
`seq -s " " 5 3 20`
|
2018-11-30 18:10:37 +00:00
|
|
|
|
2018-12-03 16:52:57 +00:00
|
|
|
- Format output width to a minimum of 4 digits padding with zeros as necessary:
|
2018-11-30 18:10:37 +00:00
|
|
|
|
2018-12-03 16:52:47 +00:00
|
|
|
`seq -f "%04g" 5 3 20`
|