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}}`