groff 1.23.0 added .MR to its -man macro package. The NEWS file states
that the inclusion of the macro "was prompted by its introduction to
Plan 9 from User Space's troff in August 2020." From d32deab it seems
that the name for Plan 9 from User Space's implementation was suggested
by groff maintainer G. Brandon Robinson.
Not sure if the intention was to make these definitions compatible, but
it would be nice if they were.
Currently, Plan 9 from User Space's .MR expects its second argument to
be parenthesized. groff's .MR does not. This results in extra
parentheses appearing in manual references when viewing Plan 9 from User
Space's manual pages on a system using groff.
48 lines
661 B
Groff
48 lines
661 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"
|
|
.MR sort 1 ,
|
|
.IR cmp (1),
|
|
.IR diff (1),
|
|
.MR uniq 1
|