Back to Developer Roadmap

uniq

src/data/roadmaps/shell-bash/content/uniq@4pygQshD_WdP0i6xq3Kc8.md

4.0676 B
Original Source

uniq

uniq is a command-line utility that filters adjacent matching lines from an input file (or standard input) and writes a single copy of the matching line to the output. It's primarily used to remove duplicate lines, but it requires that the duplicates be next to each other to be effective. Options allow you to count the number of occurrences of each line, display unique lines, or display only duplicate lines.

Visit the following resources to learn more: