From a5352ad9e52c1657301ef116e684a34ad1d3c52b Mon Sep 17 00:00:00 2001 From: Chris Lane Date: Mon, 9 Feb 2015 18:07:17 -0500 Subject: [PATCH] Trivial edits to uniq cheatsheet --- cheat/cheatsheets/uniq | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cheat/cheatsheets/uniq b/cheat/cheatsheets/uniq index 18ee084..b9abd3d 100644 --- a/cheat/cheatsheets/uniq +++ b/cheat/cheatsheets/uniq @@ -1,13 +1,18 @@ # show all lines without duplication -# "sort -u" and "uniq" is the same effect. +# `sort -u` and `uniq` is the same effect. sort file | uniq + # show not duplicated lines sort file | uniq -u + # show duplicated lines only sort file | uniq -d + # count all lines sort file | uniq -c + # count not duplicated lines sort file | uniq -uc + # count only duplicated lines sort file | uniq -dc