OSDN Git Service

coreutils: Update to coreutils 8.21
[linuxjm/coreutils.git] / original / man1 / uniq.1
1 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.35.
2 .TH UNIQ "1" "May 2014" "GNU coreutils 8.21" "User Commands"
3 .SH NAME
4 uniq \- report or omit repeated lines
5 .SH SYNOPSIS
6 .B uniq
7 [\fIOPTION\fR]... [\fIINPUT \fR[\fIOUTPUT\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
23 .TP
24 \fB\-D\fR, \fB\-\-all\-repeated\fR[=\fIdelimit\-method\fR]
25 print all duplicate lines
26 delimit\-method={none(default),prepend,separate}
27 Delimiting is done with blank lines
28 .TP
29 \fB\-f\fR, \fB\-\-skip\-fields\fR=\fIN\fR
30 avoid comparing the first N fields
31 .TP
32 \fB\-i\fR, \fB\-\-ignore\-case\fR
33 ignore differences in case when comparing
34 .TP
35 \fB\-s\fR, \fB\-\-skip\-chars\fR=\fIN\fR
36 avoid comparing the first N characters
37 .TP
38 \fB\-u\fR, \fB\-\-unique\fR
39 only print unique lines
40 .TP
41 \fB\-z\fR, \fB\-\-zero\-terminated\fR
42 end lines with 0 byte, not newline
43 .TP
44 \fB\-w\fR, \fB\-\-check\-chars\fR=\fIN\fR
45 compare no more than N characters in lines
46 .TP
47 \fB\-\-help\fR
48 display this help and exit
49 .TP
50 \fB\-\-version\fR
51 output version information and exit
52 .PP
53 A field is a run of blanks (usually spaces and/or TABs), then non\-blank
54 characters.  Fields are skipped before chars.
55 .PP
56 Note: 'uniq' does not detect repeated lines unless they are adjacent.
57 You may want to sort the input first, or use 'sort \fB\-u\fR' without 'uniq'.
58 Also, comparisons honor the rules specified by 'LC_COLLATE'.
59 .SH AUTHOR
60 Written by Richard M. Stallman and David MacKenzie.
61 .SH "REPORTING BUGS"
62 Report uniq bugs to bug\-coreutils@gnu.org
63 .br
64 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
65 .br
66 General help using GNU software: <http://www.gnu.org/gethelp/>
67 .br
68 Report uniq translation bugs to <http://translationproject.org/team/>
69 .SH COPYRIGHT
70 Copyright \(co 2013 Free Software Foundation, Inc.
71 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
72 .br
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 .SH "SEE ALSO"
76 comm(1), join(1), sort(1)
77 .PP
78 The full documentation for
79 .B uniq
80 is maintained as a Texinfo manual.  If the
81 .B info
82 and
83 .B uniq
84 programs are properly installed at your site, the command
85 .IP
86 .B info coreutils \(aquniq invocation\(aq
87 .PP
88 should give you access to the complete manual.