mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-07 03:35:42 +02:00
Update sort.md
This commit is contained in:
parent
cf05add3ff
commit
e608317d3c
1 changed files with 8 additions and 0 deletions
|
@ -13,3 +13,11 @@
|
||||||
- Sort passwd file by the 3rd field:
|
- Sort passwd file by the 3rd field:
|
||||||
|
|
||||||
`sort -t: -k 3n /etc/passwd`
|
`sort -t: -k 3n /etc/passwd`
|
||||||
|
|
||||||
|
- Sort a file as number in ascending order:
|
||||||
|
|
||||||
|
`sort -n {{filename}}`
|
||||||
|
|
||||||
|
- Sort a file preserving only unique lines:
|
||||||
|
|
||||||
|
`sort -u {{filename}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue