3 uniq \- delete consecutive identical lines in a file
5 \fBuniq\fR [\fB\-cdu\fR]\fR [\fB\-\fIn\fR] [\fB+\fIn\fR] [\fIinput [\fIoutput\fR]\fR]\fR
18 .FL "\-c" "Give count of identical lines in the input"
19 .FL "\-d" "Only duplicate lines are written to output"
20 .FL "\-u" "Only unique lines are written to output"
21 .FL "\-\fIn\fR" "Skip the first \fIn\fR columns when matching"
22 .FL "+\fIn\fR" "Skip the first \fIn\fR fields when matching"
24 .EX "uniq +2 file" "Ignore first 2 fields when comparing"
25 .EX "uniq \-d inf outf" "Write duplicate lines to \fIoutf\fP"
29 examines a file for consecutive lines that are identical.
30 All but duplicate entries are deleted, and the file is written to output.
31 The +\fIn\fR option skips the first \fIn\fR fields, where a field is defined
32 as a run of characters separated by white space.
33 The \-\fIn\fP option skips the first \fIn\fR spaces.
34 Fields are skipped first.