1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35.
2 .TH UNIQ "1" "May 2014" "GNU coreutils 8.21" "User Commands"
4 uniq \- report or omit repeated lines
7 [\fIOPTION\fR]... [\fIINPUT \fR[\fIOUTPUT\fR]]
9 .\" Add any additional description here
11 Filter adjacent matching lines from INPUT (or standard input),
12 writing to OUTPUT (or standard output).
14 With no options, matching lines are merged to the first occurrence.
16 Mandatory arguments to long options are mandatory for short options too.
18 \fB\-c\fR, \fB\-\-count\fR
19 prefix lines by the number of occurrences
21 \fB\-d\fR, \fB\-\-repeated\fR
22 only print duplicate lines
24 \fB\-D\fR, \fB\-\-all\-repeated\fR[=\fIdelimit\-method\fR]
25 print all duplicate lines
26 delimit\-method={none(default),prepend,separate}
27 Delimiting is done with blank lines
29 \fB\-f\fR, \fB\-\-skip\-fields\fR=\fIN\fR
30 avoid comparing the first N fields
32 \fB\-i\fR, \fB\-\-ignore\-case\fR
33 ignore differences in case when comparing
35 \fB\-s\fR, \fB\-\-skip\-chars\fR=\fIN\fR
36 avoid comparing the first N characters
38 \fB\-u\fR, \fB\-\-unique\fR
39 only print unique lines
41 \fB\-z\fR, \fB\-\-zero\-terminated\fR
42 end lines with 0 byte, not newline
44 \fB\-w\fR, \fB\-\-check\-chars\fR=\fIN\fR
45 compare no more than N characters in lines
48 display this help and exit
51 output version information and exit
53 A field is a run of blanks (usually spaces and/or TABs), then non\-blank
54 characters. Fields are skipped before chars.
56 Note: 'uniq' does not detect repeated lines unless they are adjacent.
57 You may want to sort the input first, or use 'sort \fB\-u\fR' without 'uniq'.
58 Also, comparisons honor the rules specified by 'LC_COLLATE'.
60 Written by Richard M. Stallman and David MacKenzie.
62 Report uniq bugs to bug\-coreutils@gnu.org
64 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
66 General help using GNU software: <http://www.gnu.org/gethelp/>
68 Report uniq translation bugs to <http://translationproject.org/team/>
70 Copyright \(co 2013 Free Software Foundation, Inc.
71 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
73 This is free software: you are free to change and redistribute it.
74 There is NO WARRANTY, to the extent permitted by law.
76 comm(1), join(1), sort(1)
78 The full documentation for
80 is maintained as a Texinfo manual. If the
84 programs are properly installed at your site, the command
86 .B info coreutils \(aquniq invocation\(aq
88 should give you access to the complete manual.