UNIQ(1)UNIQ(1)NAMEuniq - report repeated lines in a file
SYNOPSISuniq [ -ud ] [ file ]
DESCRIPTION
Uniq copies the input file, or the standard input, to the standard out‐
put, comparing adjacent lines. In the normal case, the second and suc‐
ceeding copies of repeated lines are removed. Repeated lines must be
adjacent in order to be found.
-u Print unique lines.
-d Print (one copy of) duplicated lines.
SOURCE
/appl/cmd/uniq.b
SEE ALSOcomm(1), sort(1)UNIQ(1)