mp-utils/src/wc.1

49 lines
973 B
Groff

.TH wc 1 2021-11-21 mp-utils "General Commands Manual"
.SH NAME
wc \- count words, lines, bytes/characters
.PP
.SH SYNOPSIS
.PP
wc [-c|-m] [-lw] [files...]
.SH DESCRIPTION
.PP
wc is a standard Unix tool that tallies up the number of words (series of
non-blank bytes), lines (newlines), and bytes or characters in input.
Characters in the context of wc includes multi-byte character support; that
bytes are called characters is an unfortunate notational happenstance.
.SH OPTIONS
.PP
This implementation of wc accepts the following flags:
.SM
-c: Print the number of bytes.
-m: Print the number of characters.
-l: Print the number of lines.
-w: Print the number of words.
.SH ENVIRONMENT
This implementation of wc requires a C89 compiler.
.SH FILES
/usr/src/mp-utils/src/wc.c
.SH CONFORMING TO
.PP
.SM
POSIX
2017,
.SM
SUS
3
.SH NOTES
.PP
None.
.SH ERRORS
.PP
This implementation of wc does not currently treat characters any different than
bytes.
.SH SEE ALSO
wc(1p)