1COMM(1) User Commands COMM(1)
2
3
4
6 comm - compare two sorted files line by line
7
9 comm [OPTION]... FILE1 FILE2
10
12 Compare sorted files FILE1 and FILE2 line by line.
13
14 With no options, produce three-column output. Column one contains
15 lines unique to FILE1, column two contains lines unique to FILE2, and
16 column three contains lines common to both files.
17
18 -1 suppress column 1 (lines unique to FILE1)
19
20 -2 suppress column 2 (lines unique to FILE2)
21
22 -3 suppress column 3 (lines that appear in both files)
23
24 --check-order
25 check that the input is correctly sorted, even if all input
26 lines are pairable
27
28 --nocheck-order
29 do not check that the input is correctly sorted
30
31 --output-delimiter=STR
32 separate columns with STR
33
34 --help display this help and exit
35
36 --version
37 output version information and exit
38
39 Note, comparisons honor the rules specified by 'LC_COLLATE'.
40
42 comm -12 file1 file2
43 Print only lines present in both file1 and file2.
44
45 comm -3 file1 file2
46 Print lines in file1 not in file2, and vice versa.
47
48 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
49 Report comm translation bugs to <http://translationproject.org/team/>
50
52 Written by Richard M. Stallman and David MacKenzie.
53
55 Copyright © 2013 Free Software Foundation, Inc. License GPLv3+: GNU
56 GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
57 This is free software: you are free to change and redistribute it.
58 There is NO WARRANTY, to the extent permitted by law.
59
61 join(1), uniq(1)
62
63 The full documentation for comm is maintained as a Texinfo manual. If
64 the info and comm programs are properly installed at your site, the
65 command
66
67 info coreutils 'comm invocation'
68
69 should give you access to the complete manual.
70
71
72
73GNU coreutils 8.22 October 2018 COMM(1)