diff --git a/pages/common/uniq.md b/pages/common/uniq.md index fb28858e6b..1ed819169a 100644 --- a/pages/common/uniq.md +++ b/pages/common/uniq.md @@ -17,3 +17,7 @@ - Display number of occurences of each line along with that line: `uniq -c {{file}}` + +- Display number of occurences of each line, sorted by the most frequent: + +`uniq -c {{file}} | sort -nr`