OSDN Git Service

Update translations: chroot, csplit, dd, du, pwd
[linuxjm/coreutils.git] / original / man1 / comm.1
1 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.47.3.
2 .TH COMM "1" "January 2016" "GNU coreutils 8.25" "User Commands"
3 .SH NAME
4 comm \- compare two sorted files line by line
5 .SH SYNOPSIS
6 .B comm
7 [\fI\,OPTION\/\fR]... \fI\,FILE1 FILE2\/\fR
8 .SH DESCRIPTION
9 .\" Add any additional description here
10 .PP
11 Compare sorted files FILE1 and FILE2 line by line.
12 .PP
13 When FILE1 or FILE2 (not both) is \-, read standard input.
14 .PP
15 With no options, produce three\-column output.  Column one contains
16 lines unique to FILE1, column two contains lines unique to FILE2,
17 and column three contains lines common to both files.
18 .TP
19 \fB\-1\fR
20 suppress column 1 (lines unique to FILE1)
21 .TP
22 \fB\-2\fR
23 suppress column 2 (lines unique to FILE2)
24 .TP
25 \fB\-3\fR
26 suppress column 3 (lines that appear in both files)
27 .TP
28 \fB\-\-check\-order\fR
29 check that the input is correctly sorted, even
30 if all input lines are pairable
31 .TP
32 \fB\-\-nocheck\-order\fR
33 do not check that the input is correctly sorted
34 .TP
35 \fB\-\-output\-delimiter\fR=\fI\,STR\/\fR
36 separate columns with STR
37 .TP
38 \fB\-z\fR, \fB\-\-zero\-terminated\fR
39 line delimiter is NUL, not newline
40 .TP
41 \fB\-\-help\fR
42 display this help and exit
43 .TP
44 \fB\-\-version\fR
45 output version information and exit
46 .PP
47 Note, comparisons honor the rules specified by 'LC_COLLATE'.
48 .SH EXAMPLES
49 .TP
50 comm \-12 file1 file2
51 Print only lines present in both file1 and file2.
52 .TP
53 comm \-3 file1 file2
54 Print lines in file1 not in file2, and vice versa.
55 .SH AUTHOR
56 Written by Richard M. Stallman and David MacKenzie.
57 .SH "REPORTING BUGS"
58 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
59 .br
60 Report comm translation bugs to <http://translationproject.org/team/>
61 .SH COPYRIGHT
62 Copyright \(co 2016 Free Software Foundation, Inc.
63 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
64 .br
65 This is free software: you are free to change and redistribute it.
66 There is NO WARRANTY, to the extent permitted by law.
67 .SH "SEE ALSO"
68 join(1), uniq(1)
69 .PP
70 .br
71 Full documentation at: <http://www.gnu.org/software/coreutils/comm>
72 .br
73 or available locally via: info \(aq(coreutils) comm invocation\(aq