plan9port/man/man1/comm.1
Russ Cox 977b25a76a tmac: introduce real manual reference macro instead of overloading IR
The overloading of IR emits magic \X'...' sequences that turn into HTML manual links.
But not all such IR invocations should be manual links;
those had to be written to avoid the IR macro before.
Worse, the \X'...' ending the IR causes troff to emit only a single space after a period.

Defining a new IM macro for manual references fixes both problems.

Fixes #441.
2020-08-13 23:43:43 -04:00

47 lines
665 B
Groff

.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
.IR file2 ,
which are in lexicographical order,
and produces a three column output: lines only in
.IR file1 ;
lines only in
.IR file2 ;
and lines in both files.
The file name
.L -
means the standard input.
.PP
Flag
.LR 1 ,
.LR 2 ,
or
.LR 3
suppresses printing of the corresponding
column.
.SH EXAMPLE
.TP
.EX
comm -12 file1 file2
.EE
.IP
Print lines common to two sorted files.
.SH SOURCE
.B \*9/src/cmd/comm.c
.SH "SEE ALSO"
.IM sort (1) ,
.IR cmp (1),
.IR diff (1),
.IM uniq (1)