summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-leap-15-6/man1/uniq.1
blob: 278ade09cb7fa234f6140314792bcea579daa3ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.47.3.
.TH UNIQ "1" "October 2021" "GNU coreutils 8.32" "User Commands"
.SH NAME
uniq \- report or omit repeated lines
.SH SYNOPSIS
.B uniq
[\fI\,OPTION\/\fR]... [\fI\,INPUT \/\fR[\fI\,OUTPUT\/\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, one for each group
.TP
\fB\-D\fR
print all duplicate lines
.TP
\fB\-\-all\-repeated\fR[=\fI\,METHOD\/\fR]
like \fB\-D\fR, but allow separating groups
with an empty line;
METHOD={none(default),prepend,separate}
.TP
\fB\-f\fR, \fB\-\-skip\-fields\fR=\fI\,N\/\fR
avoid comparing the first N fields
.TP
\fB\-\-group\fR[=\fI\,METHOD\/\fR]
show all items, separating groups with an empty line;
METHOD={separate(default),prepend,append,both}
.TP
\fB\-i\fR, \fB\-\-ignore\-case\fR
ignore differences in case when comparing
.TP
\fB\-s\fR, \fB\-\-skip\-chars\fR=\fI\,N\/\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
line delimiter is NUL, not newline
.TP
\fB\-w\fR, \fB\-\-check\-chars\fR=\fI\,N\/\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'.
.SH AUTHOR
Written by Richard M. Stallman and David MacKenzie.
.SH "REPORTING BUGS"
GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
.br
Report any translation bugs to <https://translationproject.org/team/>
.SH COPYRIGHT
Copyright \(co 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
.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), sort(1)
.PP
.br
Full documentation <https://www.gnu.org/software/coreutils/uniq>
.br
or available locally via: info \(aq(coreutils) uniq invocation\(aq