.he 'UNIQ (I)'12/1/72'UNIQ (I)'
NAME uniq -- report repeated lines in a file
SYNOPSIS uniq
\b\b\b\b____ [ -ud
\b\b\b___ ] [ input [ output ] ]
DESCRIPTION uniq
\b\b\b\b____
file comparing adjacent lines.
In the normal case, the second and succeeding copies
removed; the remainder is written on the output file.
Note that repeated lines must be adjacent
If the -u
\b\b__ flag is used,
just the lines that are not repeated
in the original file are output.
The -d
\b\b__ option specifies that
one copy of just the repeated lines is to
Note that the normal mode output is the union of the
-u
\b\b__ and -d
\b\b__ mode outputs.
The following example will print one copy of all
lines in the file a
\b_ that do not occur in b
\b_:
DIAGNOSTICS "cannot open input", "cannot create output"