]> pd.if.org Git - pdutils/blob - posix/comm/comm.1
rename utils to posix
[pdutils] / posix / comm / comm.1
1 .TH COMM 1 "2008-1.01" "pdcore utilities" "User Commands"
2 .SH NAME
3 comm \- select or reject lines common to two files
4 .SH SYNOPSIS
5 .B comm
6 [-123] file1 file2
7 .SH DESCRIPTION
8 Read 'file1' and 'file2', both of which should be ordered in the current
9 collating sequence, and produce three text columns as output: lines unique
10 to 'file1', lines unique to 'file2', and lines common to both files.
11 .SH OPTIONS
12 .TP
13 -1
14 Suppress output of column one (lines unique to 'file1').
15 .TP
16 -2
17 Suppress output of column two (lines unique to 'file2').
18 .TP
19 -3
20 Suppress output of column three (lines common to both files).
21 .P
22 .SH OPERANDS
23 .TP
24 file1, file2
25 Input files. If none provided, or the filename '-' is passed to comm,
26 standard input will be used.
27 .SH "AUTHORITATIVE DOCUMENTATION"
28 <http://www.opengroup.org/onlinepubs/9699919799/utilities/comm.html>
29 .SH VERSION AND COMPLIANCE
30 Utility version 1.01
31 .P
32 Functional compliance with POSIX:2008 (IEEE Std 1003.1-2008;
33 Shell and Utilities, Base Specifications Issue 7).
34 .SH UNLICENSE
35 This is free and unencumbered software released into the public domain,
36 provided "as is", without warranty of any kind, express or implied. See the
37 file UNLICENSE and the website <http://unlicense.org> for further details.