mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 12:49:52 +00:00
Update cheatsheets
This commit is contained in:
25
seq
Normal file
25
seq
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# seq
|
||||
|
||||
> Output a sequence of numbers to `stdout`.
|
||||
> More information: <https://www.gnu.org/software/coreutils/seq>.
|
||||
|
||||
- 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`
|
||||
Reference in New Issue
Block a user