1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3.
2 .TH UNIQ "1" "January 2016" "GNU coreutils 8.25" "User Commands"
4 uniq \- report or omit repeated lines
7 [\fI\,OPTION\/\fR]... [\fI\,INPUT \/\fR[\fI\,OUTPUT\/\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
25 print all duplicate lines
27 \fB\-\-all\-repeated\fR[=\fI\,METHOD\/\fR]
28 like \fB\-D\fR, but allow separating groups
30 METHOD={none(default),prepend,separate}
32 \fB\-f\fR, \fB\-\-skip\-fields\fR=\fI\,N\/\fR
33 avoid comparing the first N fields
35 \fB\-\-group\fR[=\fI\,METHOD\/\fR]
36 show all items, separating groups with an empty line;
37 METHOD={separate(default),prepend,append,both}
39 \fB\-i\fR, \fB\-\-ignore\-case\fR
40 ignore differences in case when comparing
42 \fB\-s\fR, \fB\-\-skip\-chars\fR=\fI\,N\/\fR
43 avoid comparing the first N characters
45 \fB\-u\fR, \fB\-\-unique\fR
46 only print unique lines
48 \fB\-z\fR, \fB\-\-zero\-terminated\fR
49 line delimiter is NUL, not newline
51 \fB\-w\fR, \fB\-\-check\-chars\fR=\fI\,N\/\fR
52 compare no more than N characters in lines
55 display this help and exit
58 output version information and exit
60 A field is a run of blanks (usually spaces and/or TABs), then non\-blank
61 characters. Fields are skipped before chars.
63 Note: 'uniq' does not detect repeated lines unless they are adjacent.
64 You may want to sort the input first, or use 'sort \fB\-u\fR' without 'uniq'.
65 Also, comparisons honor the rules specified by 'LC_COLLATE'.
67 Written by Richard M. Stallman and David MacKenzie.
69 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
71 Report uniq translation bugs to <http://translationproject.org/team/>
73 Copyright \(co 2016 Free Software Foundation, Inc.
74 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
76 This is free software: you are free to change and redistribute it.
77 There is NO WARRANTY, to the extent permitted by law.
79 comm(1), join(1), sort(1)
82 Full documentation at: <http://www.gnu.org/software/coreutils/uniq>
84 or available locally via: info \(aq(coreutils) uniq invocation\(aq