Text Processing
uniq
Removes or reports duplicate lines.
Ubuntu
CentOS
Debian
Arch
SUSE
Slackware
Alpine
Fedora
Verified: 2025-09-09
Syntax
$uniq [OPTIONEN] [DATEI [AUSGABE]]
Examples
$uniq datei.txt
$uniq -c datei.txt
Typical use cases
?
Standard usage
uniq --help
Note
Often used with sort.
Export