mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
581 B
581 B
The uniq command
Table of contents
TL;DR
# Print all but duplicates lines.
uniq path/to/file
# Only print unique lines.
uniq -u path/to/file
# Only print repeating lines.
uniq -d path/to/file
# Count unique lines only.
uniq -cu path/to/file
# Count duplicated lines only.
uniq -cd path/to/file