From 2e1cda114a7ef0f8ad0ce47756f42e196a1be8cd Mon Sep 17 00:00:00 2001 From: shigemk2 Date: Mon, 12 Jan 2015 21:29:35 +0900 Subject: [PATCH] Refer sort -u --- cheat/cheatsheets/uniq | 1 + 1 file changed, 1 insertion(+) diff --git a/cheat/cheatsheets/uniq b/cheat/cheatsheets/uniq index a2bcfc5..18ee084 100644 --- a/cheat/cheatsheets/uniq +++ b/cheat/cheatsheets/uniq @@ -1,4 +1,5 @@ # show all lines without duplication +# "sort -u" and "uniq" is the same effect. sort file | uniq # show not duplicated lines sort file | uniq -u