Debian Codegraph @

upstream/debian-unstable/man1/comm.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1.
2 .TH COMM "1" "February 2026" "GNU coreutils 9.10" "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 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#comm-1'\fB\-1\fP\X'tty: link'
20 suppress column 1 (lines unique to FILE1)
21 .TP
22 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#comm-2'\fB\-2\fP\X'tty: link'
23 suppress column 2 (lines unique to FILE2)
24 .TP
25 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#comm-3'\fB\-3\fP\X'tty: link'
26 suppress column 3 (lines that appear in both files)
27 .TP
28 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#comm--check-order'\fB\-\-check\-order\fP\X'tty: link'
29 check that the input is correctly sorted,
30 even if all input lines are pairable
31 .TP
32 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#comm--nocheck-order'\fB\-\-nocheck\-order\fP\X'tty: link'
33 do not check that the input is correctly sorted
34 .TP
35 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#comm--output-delimiter'\fB\-\-output\-delimiter=STR\fP\X'tty: link'
36 separate columns with STR
37 .TP
38 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#comm--total'\fB\-\-total\fP\X'tty: link'
39 output a summary
40 .TP
41 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#comm-z'\fB\-z, \-\-zero\-terminated\fP\X'tty: link'
42 line delimiter is NUL, not newline
43 .TP
44 \X'tty: link https://www.gnu.org/software/coreutils/comm#comm--help'\fB\-\-help\fP\X'tty: link'
45 display this help and exit
46 .TP
47 \X'tty: link https://www.gnu.org/software/coreutils/comm#comm--version'\fB\-\-version\fP\X'tty: link'
48 output version information and exit
49 .PP
50 Comparisons honor the rules specified by 'LC_COLLATE'.
51 .SH EXAMPLES
52 .TP
53 comm \-12 file1 file2
54 Print only lines present in both file1 and file2.
55 .TP
56 comm \-3 file1 file2
57 Print lines in file1 not in file2, and vice versa.
58 .SH AUTHOR
59 Written by Richard M. Stallman and David MacKenzie.
60 .SH "REPORTING BUGS"
61 Report bugs to: bug\[email protected]
62 .br
63 GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
64 .br
65 General help using GNU software: <https://www.gnu.org/gethelp/>
66 .br
67 Report any translation bugs to <https://translationproject.org/team/>
68 .SH "SEE ALSO"
69 \fBjoin\fP(1), \fBuniq\fP(1)
70 .PP
71 .br
72 Full documentation <https://www.gnu.org/software/coreutils/comm>
73 .br
74 or available locally via: info \(aq(coreutils) comm invocation\(aq
75 .PP
76 .br
77 Packaged by Debian (9.10\-1)
78 .br
79 Copyright \(co 2026 Free Software Foundation, Inc.
80 .br
81 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
82 .br
83 This is free software: you are free to change and redistribute it.
84 .br
85 There is NO WARRANTY, to the extent permitted by law.