uniq

Remove non-unique lines

Usage: uniq options [list-of-files]

Standard Input: Used only if no list-of-files is given

Standard Output: Used to display results

SEE ALSO

For more information, see page 559

Useful options:

-d means show only duplicated lines.

-u means show only unique lines.

-c means show count for each line of number of duplicates.

Get Practical UNIX now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.