소스 검색

Update sort.md

Larry850806 9 년 전
부모
커밋
e608317d3c
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  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}}`