1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35.
2 .TH COMM "1" "March 2012" "GNU coreutils 8.16" "User Commands"
4 comm \- compare two sorted files line by line
7 [\fIOPTION\fR]... \fIFILE1 FILE2\fR
9 .\" Add any additional description here
11 Compare sorted files FILE1 and FILE2 line by line.
13 With no options, produce three\-column output. Column one contains
14 lines unique to FILE1, column two contains lines unique to FILE2,
15 and column three contains lines common to both files.
18 suppress column 1 (lines unique to FILE1)
21 suppress column 2 (lines unique to FILE2)
24 suppress column 3 (lines that appear in both files)
26 \fB\-\-check\-order\fR
27 check that the input is correctly sorted, even
28 if all input lines are pairable
30 \fB\-\-nocheck\-order\fR
31 do not check that the input is correctly sorted
33 \fB\-\-output\-delimiter\fR=\fISTR\fR
34 separate columns with STR
37 display this help and exit
40 output version information and exit
42 Note, comparisons honor the rules specified by 'LC_COLLATE'.
45 comm \fB\-12\fR file1 file2
46 Print only lines present in both file1 and file2.
48 comm \fB\-3\fR file1 file2
49 Print lines in file1 not in file2, and vice versa.
51 Written by Richard M. Stallman and David MacKenzie.
53 Report comm bugs to bug\-coreutils@gnu.org
55 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
57 General help using GNU software: <http://www.gnu.org/gethelp/>
59 Report comm translation bugs to <http://translationproject.org/team/>
61 Copyright \(co 2012 Free Software Foundation, Inc.
62 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
64 This is free software: you are free to change and redistribute it.
65 There is NO WARRANTY, to the extent permitted by law.
69 The full documentation for
71 is maintained as a Texinfo manual. If the
75 programs are properly installed at your site, the command
77 .B info coreutils \(aqcomm invocation\(aq
79 should give you access to the complete manual.