1COMM(1)                          User Commands                         COMM(1)
2
3
4

NAME

6       comm - compare two sorted files line by line
7

SYNOPSIS

9       comm [OPTION]... FILE1 FILE2
10

DESCRIPTION

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

EXAMPLES

42       comm -12 file1 file2
43              Print only lines present in both file1 and file2.
44
45       comm -3
46              file1 file2  Print lines in file1 not in file2, and vice versa.
47

AUTHOR

49       Written by Richard M. Stallman and David MacKenzie.
50

REPORTING BUGS

52       Report comm bugs to bug-coreutils@gnu.org
53       GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
54       General help using GNU software: <http://www.gnu.org/gethelp/>
55       Report comm translation bugs to <http://translationproject.org/team/>
56
58       Copyright © 2010 Free Software Foundation, Inc.   License  GPLv3+:  GNU
59       GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
60       This  is  free  software:  you  are free to change and redistribute it.
61       There is NO WARRANTY, to the extent permitted by law.
62

SEE ALSO

64       join(1), uniq(1)
65
66       The full documentation for comm is maintained as a Texinfo manual.   If
67       the  info  and  comm  programs are properly installed at your site, the
68       command
69
70              info coreutils 'comm invocation'
71
72       should give you access to the complete manual.
73
74
75
76GNU coreutils 8.4                  June 2018                           COMM(1)
Impressum