xref: /plan9/sys/man/1/comm (revision 219b2ee8daee37f4aad58d63f21287faa8e4ffdc)
COMM 1
.CT 1 files
NAME
comm - select or reject lines common to two sorted files
SYNOPSIS
comm [ -123 ] file1 file2
DESCRIPTION
Comm reads file1 and file2 , which are in lexicographical order, and produces a three column output: lines only in file1 ; lines only in file2 ; and lines in both files. The file name .L - means the standard input.

Flag .LR 1 , .LR 2 , or .LR 3 suppresses printing of the corresponding column.

EXAMPLE

.EX comm -12 file1 file2

Print lines common to two sorted files.
SOURCE
/sys/src/cmd/comm.c
"SEE ALSO"
sort (1), cmp (1), diff (1), uniq (1)