Explorar o código

Update sort.md

Larry850806 %!s(int64=9) %!d(string=hai) anos
pai
achega
e608317d3c
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      pages/common/sort.md

+ 8 - 0
pages/common/sort.md

@@ -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}}`