1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.43.3.
2 .TH UNIQ "1" "May 2014" "GNU coreutils 8.22" "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, one for each group
24 \fB\-D\fR, \fB\-\-all\-repeated\fR[=\fIMETHOD\fR]
25 print all duplicate lines
26 groups can be delimited with an empty line
27 METHOD={none(default),prepend,separate}
29 \fB\-f\fR, \fB\-\-skip\-fields\fR=\fIN\fR
30 avoid comparing the first N fields
32 \fB\-\-group\fR[=\fIMETHOD\fR]
33 show all items, separating groups with an empty line
34 METHOD={separate(default),prepend,append,both}
36 \fB\-i\fR, \fB\-\-ignore\-case\fR
37 ignore differences in case when comparing
39 \fB\-s\fR, \fB\-\-skip\-chars\fR=\fIN\fR
40 avoid comparing the first N characters
42 \fB\-u\fR, \fB\-\-unique\fR
43 only print unique lines
45 \fB\-z\fR, \fB\-\-zero\-terminated\fR
46 end lines with 0 byte, not newline
48 \fB\-w\fR, \fB\-\-check\-chars\fR=\fIN\fR
49 compare no more than N characters in lines
52 display this help and exit
55 output version information and exit
57 A field is a run of blanks (usually spaces and/or TABs), then non\-blank
58 characters. Fields are skipped before chars.
60 Note: 'uniq' does not detect repeated lines unless they are adjacent.
61 You may want to sort the input first, or use 'sort \fB\-u\fR' without 'uniq'.
62 Also, comparisons honor the rules specified by 'LC_COLLATE'.
64 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
65 Report uniq translation bugs to <http://translationproject.org/team/>
67 Written by Richard M. Stallman and David MacKenzie.
69 Copyright \(co 2013 Free Software Foundation, Inc.
70 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
72 This is free software: you are free to change and redistribute it.
73 There is NO WARRANTY, to the extent permitted by law.
75 comm(1), join(1), sort(1)
77 The full documentation for
79 is maintained as a Texinfo manual. If the
83 programs are properly installed at your site, the command
85 .B info coreutils \(aquniq invocation\(aq
87 should give you access to the complete manual.