OSDN Git Service

Update translations: chroot, csplit, dd, du, pwd
[linuxjm/coreutils.git] / original / man1 / uniq.1
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"
3 .SH NAME
4 uniq \- report or omit repeated lines
5 .SH SYNOPSIS
6 .B uniq
7 [\fI\,OPTION\/\fR]... [\fI\,INPUT \/\fR[\fI\,OUTPUT\/\fR]]
8 .SH DESCRIPTION
9 .\" Add any additional description here
10 .PP
11 Filter adjacent matching lines from INPUT (or standard input),
12 writing to OUTPUT (or standard output).
13 .PP
14 With no options, matching lines are merged to the first occurrence.
15 .PP
16 Mandatory arguments to long options are mandatory for short options too.
17 .TP
18 \fB\-c\fR, \fB\-\-count\fR
19 prefix lines by the number of occurrences
20 .TP
21 \fB\-d\fR, \fB\-\-repeated\fR
22 only print duplicate lines, one for each group
23 .TP
24 \fB\-D\fR
25 print all duplicate lines
26 .TP
27 \fB\-\-all\-repeated\fR[=\fI\,METHOD\/\fR]
28 like \fB\-D\fR, but allow separating groups
29 with an empty line;
30 METHOD={none(default),prepend,separate}
31 .TP
32 \fB\-f\fR, \fB\-\-skip\-fields\fR=\fI\,N\/\fR
33 avoid comparing the first N fields
34 .TP
35 \fB\-\-group\fR[=\fI\,METHOD\/\fR]
36 show all items, separating groups with an empty line;
37 METHOD={separate(default),prepend,append,both}
38 .TP
39 \fB\-i\fR, \fB\-\-ignore\-case\fR
40 ignore differences in case when comparing
41 .TP
42 \fB\-s\fR, \fB\-\-skip\-chars\fR=\fI\,N\/\fR
43 avoid comparing the first N characters
44 .TP
45 \fB\-u\fR, \fB\-\-unique\fR
46 only print unique lines
47 .TP
48 \fB\-z\fR, \fB\-\-zero\-terminated\fR
49 line delimiter is NUL, not newline
50 .TP
51 \fB\-w\fR, \fB\-\-check\-chars\fR=\fI\,N\/\fR
52 compare no more than N characters in lines
53 .TP
54 \fB\-\-help\fR
55 display this help and exit
56 .TP
57 \fB\-\-version\fR
58 output version information and exit
59 .PP
60 A field is a run of blanks (usually spaces and/or TABs), then non\-blank
61 characters.  Fields are skipped before chars.
62 .PP
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'.
66 .SH AUTHOR
67 Written by Richard M. Stallman and David MacKenzie.
68 .SH "REPORTING BUGS"
69 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
70 .br
71 Report uniq translation bugs to <http://translationproject.org/team/>
72 .SH COPYRIGHT
73 Copyright \(co 2016 Free Software Foundation, Inc.
74 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
75 .br
76 This is free software: you are free to change and redistribute it.
77 There is NO WARRANTY, to the extent permitted by law.
78 .SH "SEE ALSO"
79 comm(1), join(1), sort(1)
80 .PP
81 .br
82 Full documentation at: <http://www.gnu.org/software/coreutils/uniq>
83 .br
84 or available locally via: info \(aq(coreutils) uniq invocation\(aq