mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
sort.md: sync linux & common versions
This commit is contained in:
parent
8eadb597a6
commit
894921a9e2
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,10 @@
|
||||||
|
|
||||||
`sort -r {{filename}}`
|
`sort -r {{filename}}`
|
||||||
|
|
||||||
|
- Sort a file using numeric rather than alphabetic order:
|
||||||
|
|
||||||
|
`sort -n {{filename}}`
|
||||||
|
|
||||||
- Sort the passwd file by the 3rd field, numerically:
|
- Sort the passwd file by the 3rd field, numerically:
|
||||||
|
|
||||||
`sort -t: -k 3n /etc/passwd`
|
`sort -t: -k 3n /etc/passwd`
|
||||||
|
|
Loading…
Add table
Reference in a new issue