From f8cbd12e702716dbdec6c04503e4da4f11a90866 Mon Sep 17 00:00:00 2001 From: muteness Date: Tue, 12 Jan 2016 10:08:52 -0500 Subject: [PATCH] uniq: add page --- pages/common/uniq.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/uniq.md diff --git a/pages/common/uniq.md b/pages/common/uniq.md new file mode 100644 index 000000000..7be8b8bf3 --- /dev/null +++ b/pages/common/uniq.md @@ -0,0 +1,19 @@ +# uniq + +> Report or omit repeated lines. + +- Display each line once: + +`uniq {{file}}` + +- Display only unique lines: + +`uniq -u {{file}}` + +- Display only duplicate lines: + +`uniq -d {{file}}` + +- Display number of occurences of each line along with that line: + +`uniq -c {{file}}`