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.
41 lines
731 B
Groff
41 lines
731 B
Groff
.TH FREQ 1
|
|
.SH NAME
|
|
freq \- print histogram of character frequencies
|
|
.SH SYNOPSIS
|
|
.B freq
|
|
[
|
|
.B -dxocr
|
|
]
|
|
[
|
|
.I file ...
|
|
]
|
|
.SH DESCRIPTION
|
|
.I Freq
|
|
reads the given files (default standard input)
|
|
and prints histograms of the character frequencies.
|
|
By default,
|
|
.I freq
|
|
counts each byte as a character;
|
|
under the
|
|
.B -r
|
|
option it instead counts
|
|
.SM UTF
|
|
sequences, that is, runes.
|
|
.PP
|
|
Each non-zero entry of the table is printed preceded by the byte value,
|
|
in decimal, octal, hex, and
|
|
Unicode
|
|
character (if printable).
|
|
If any options are given, the
|
|
.BR -d ,
|
|
.BR -x ,
|
|
.BR -o ,
|
|
.B -c
|
|
flags specify a subset of value formats: decimal, hex, octal, and
|
|
character, respectively.
|
|
.SH SOURCE
|
|
.B \*9/src/cmd/freq.c
|
|
.SH SEE ALSO
|
|
.MR utf 7 ,
|
|
.MR wc 1
|