OSDN Git Service

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