Update sort.md

This commit is contained in:
Larry850806 2016-03-30 23:13:36 +08:00
parent cf05add3ff
commit e608317d3c

View File

@ -13,3 +13,11 @@
- Sort passwd file by the 3rd field:
`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}}`