mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-12-29 03:45:31 +03:00
298 B
298 B
uniq
Output the unique lines from the given input or file.
- 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}}