File:  [Research Unix] / researchv10dc / man / adm / man1 / comm.1
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.TH COMM 1 
.CT 1 files
.SH NAME
comm \- select or reject lines common to two sorted files
.SH SYNOPSIS
.B comm
[
.B -123
]
.I file1 file2
.SH DESCRIPTION
.I Comm
reads
.I file1
and
.I file2,
which are ordered in
.SM ASCII 
collating sequence,
and produces a three column output: lines only in
.IR file1 ;
lines only in
.IR file2 ;
and lines in both files.
The filename
.L -
means the standard input.
.PP
Flag
.LR 1 ,
.LR 2 ,
or
.LR 3
suppresses printing of the corresponding
column.
.SH EXAMPLES
.TP
.L
comm -12 file1 file2
Print lines common to two sorted files.
.TP
.L
deroff -w /usr/lib/upas/names.last | tr a-z A-Z | sort -u >temp
.br
.ns
.TP
.L
spell temp | comm -13 - temp
Print names that are known both to
.IR mail (1)
and
.IR spell (1)
.SH "SEE ALSO"
.IR sort (1),
.IR cmp (1), 
.IR diff (1), 
.IR uniq (1),
.IR join (1)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.