mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
sort, shuf: minor improvement on the description (#20200)
Co-authored-by: Lena Pastwa <lena@lnps.me>
This commit is contained in:
@@ -15,6 +15,6 @@
|
||||
|
||||
`shuf {{path/to/input_file}} {{[-o|--output]}} {{path/to/output_file}}`
|
||||
|
||||
- Generate 3 random numbers in the range 1-10 (inclusive):
|
||||
- Generate 3 random numbers in the range 1-10 (inclusive, numbers can repeat):
|
||||
|
||||
`shuf {{[-n|--head-count]}} 3 {{[-i|--input-range]}} 1-10 {{[-r|--repeat]}}`
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
`sort {{[-n|--numeric-sort]}} {{path/to/file}}`
|
||||
|
||||
- Sort `/etc/passwd` by the 3rd field of each line numerically, using `:` as a field separator:
|
||||
- Sort `/etc/passwd` by the 3rd field onward of each line numerically, using `:` as a field separator:
|
||||
|
||||
`sort {{[-t|--field-separator]}} : {{[-k|--key]}} 3n /etc/passwd`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user