1UNIQ(1)                          User Commands                         UNIQ(1)
2
3
4

NAME

6       uniq - report or omit repeated lines
7

SYNOPSIS

9       uniq [OPTION]... [INPUT [OUTPUT]]
10

DESCRIPTION

12       Filter  adjacent matching lines from INPUT (or standard input), writing
13       to OUTPUT (or standard output).
14
15       With no options, matching lines are merged to the first occurrence.
16
17       Mandatory arguments to long options are  mandatory  for  short  options
18       too.
19
20       -c, --count
21              prefix lines by the number of occurrences
22
23       -d, --repeated
24              only print duplicate lines, one for each group
25
26       -D, --all-repeated[=METHOD]
27              print  all duplicate lines groups can be delimited with an empty
28              line METHOD={none(default),prepend,separate}
29
30       -f, --skip-fields=N
31              avoid comparing the first N fields
32
33       --group[=METHOD]
34              show  all  items,  separating  groups   with   an   empty   line
35              METHOD={separate(default),prepend,append,both}
36
37       -i, --ignore-case
38              ignore differences in case when comparing
39
40       -s, --skip-chars=N
41              avoid comparing the first N characters
42
43       -u, --unique
44              only print unique lines
45
46       -z, --zero-terminated
47              end lines with 0 byte, not newline
48
49       -w, --check-chars=N
50              compare no more than N characters in lines
51
52       --help display this help and exit
53
54       --version
55              output version information and exit
56
57       A field is a run of blanks (usually spaces and/or TABs), then non-blank
58       characters.  Fields are skipped before chars.
59
60       Note: 'uniq' does not detect repeated lines unless they  are  adjacent.
61       You  may want to sort the input first, or use 'sort -u' without 'uniq'.
62       Also, comparisons honor the rules specified by 'LC_COLLATE'.
63
64       GNU  coreutils  online  help:  <http://www.gnu.org/software/coreutils/>
65       Report uniq translation bugs to <http://translationproject.org/team/>
66

AUTHOR

68       Written by Richard M. Stallman and David MacKenzie.
69
71       Copyright  ©  2013  Free Software Foundation, Inc.  License GPLv3+: GNU
72       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.
75

SEE ALSO

77       comm(1), join(1), sort(1)
78
79       The  full documentation for uniq is maintained as a Texinfo manual.  If
80       the info and uniq programs are properly installed  at  your  site,  the
81       command
82
83              info coreutils 'uniq invocation'
84
85       should give you access to the complete manual.
86
87
88
89GNU coreutils 8.22               October 2018                          UNIQ(1)
Impressum