UNIQ(1plan9) | UNIQ(1plan9) |
uniq - report repeated lines in a file
uniq [ -udc [ +-num ] ] [ file ]
Uniq copies the input file, or the standard input, to the standard output, comparing adjacent lines. In the normal case, the second and succeeding copies of repeated lines are removed. Repeated lines must be adjacent in order to be found.
/src/cmd/uniq.c
Field selection and comparison should be compatible with sort(1).