Debian Codegraph @

upstream/debian-trixie/man1/comm.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1.
2 .TH COMM "1" "June 2025" "GNU coreutils 9.7" "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\-\-total\fR
39 output a summary
40 .TP
41 \fB\-z\fR, \fB\-\-zero\-terminated\fR
42 line delimiter is NUL, not newline
43 .TP
44 \fB\-\-help\fR
45 display this help and exit
46 .TP
47 \fB\-\-version\fR
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 GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
62 .br
63 Report any translation bugs to <https://translationproject.org/team/>
64 .SH "SEE ALSO"
65 \fBjoin\fP(1), \fBuniq\fP(1)
66 .PP
67 .br
68 Full documentation <https://www.gnu.org/software/coreutils/comm>
69 .br
70 or available locally via: info \(aq(coreutils) comm invocation\(aq
71 .PP
72 .br
73 Packaged by Debian (9.7\-3)
74 .br
75 Copyright \(co 2025 Free Software Foundation, Inc.
76 .br
77 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
78 .br
79 This is free software: you are free to change and redistribute it.
80 .br
81 There is NO WARRANTY, to the extent permitted by law.