.\" Copyright (c) 1989, 1990 The Regents of the University of California.
.\" This code is derived from software contributed to Berkeley by
.\" the Institute of Electrical and Electronics Engineers, Inc.
.\" %sccs.include.redist.man%
.\" @(#)comm.1 6.7 (Berkeley) %G%
.Nd select or reject lines common to two files
sorted lexically, and produces three text
columns as output: lines only in
The filename ``-'' means the standard input.
The following options are available:
Suppress printing of column 1.
Suppress printing of column 2.
Suppress printing of column 3.
Each column will have a number of tab characters prepended to it
equal to the number of lower numbered columns that are being printed.
For example, if column number two is being suppressed, lines printed
in column number one will not have any tabs preceding them, and lines
printed in column number three will have one.
assumes that the files are lexically sorted; all characters
participate in line comparisons.
exits 0 on success, >0 if an error occurred.
command is expected to be POSIX 1003.2 compatible.