.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35. .TH UNIQ "1" "September 2011" "GNU coreutils 8.12.197-032bb" "User Commands" .SH NAME uniq \- report or omit repeated lines .SH SYNOPSIS .B uniq [\fIOPTION\fR]... [\fIINPUT \fR[\fIOUTPUT\fR]] .SH DESCRIPTION .\" Add any additional description here .PP Filter adjacent matching lines from INPUT (or standard input), writing to OUTPUT (or standard output). .PP With no options, matching lines are merged to the first occurrence. .PP Mandatory arguments to long options are mandatory for short options too. .TP \fB\-c\fR, \fB\-\-count\fR prefix lines by the number of occurrences .TP \fB\-d\fR, \fB\-\-repeated\fR only print duplicate lines .TP \fB\-D\fR, \fB\-\-all\-repeated\fR[=\fIdelimit\-method\fR] print all duplicate lines delimit\-method={none(default),prepend,separate} Delimiting is done with blank lines .TP \fB\-f\fR, \fB\-\-skip\-fields\fR=\fIN\fR avoid comparing the first N fields .TP \fB\-i\fR, \fB\-\-ignore\-case\fR ignore differences in case when comparing .TP \fB\-s\fR, \fB\-\-skip\-chars\fR=\fIN\fR avoid comparing the first N characters .TP \fB\-u\fR, \fB\-\-unique\fR only print unique lines .TP \fB\-z\fR, \fB\-\-zero\-terminated\fR end lines with 0 byte, not newline .TP \fB\-w\fR, \fB\-\-check\-chars\fR=\fIN\fR compare no more than N characters in lines .TP \fB\-\-help\fR display this help and exit .TP \fB\-\-version\fR output version information and exit .PP A field is a run of blanks (usually spaces and/or TABs), then non\-blank characters. Fields are skipped before chars. .PP Note: 'uniq' does not detect repeated lines unless they are adjacent. You may want to sort the input first, or use `sort \fB\-u\fR' without `uniq'. Also, comparisons honor the rules specified by `LC_COLLATE'. .SH AUTHOR Written by Richard M. Stallman and David MacKenzie. .SH "REPORTING BUGS" Report uniq bugs to bug\-coreutils@gnu.org .br GNU coreutils home page: .br General help using GNU software: .br Report uniq translation bugs to .SH COPYRIGHT Copyright \(co 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . .br This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. .SH "SEE ALSO" comm(1), join(1) .PP The full documentation for .B uniq is maintained as a Texinfo manual. If the .B info and .B uniq programs are properly installed at your site, the command .IP .B info coreutils \(aquniq invocation\(aq .PP should give you access to the complete manual.