sbase/wc.1

32 lines
499 B
Groff
Raw Normal View History

.Dd January 30, 2015
.Dt WC 1
.Os
.Sh NAME
.Nm wc
.Nd word count
.Sh SYNOPSIS
.Nm
.Op Fl clmw
.Op Ar file ...
.Sh DESCRIPTION
.Nm
prints the number of lines, words, and bytes in each file. If any flags are
given,
.Nm
will print only the requested information. If no
.Ar files
are given,
.Nm
2011-05-23 01:36:34 +00:00
reads stdin.
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl c
2011-05-23 01:36:34 +00:00
print the number of bytes.
.It Fl l
2011-05-23 01:36:34 +00:00
print the number of lines.
.It Fl m
2011-05-23 01:36:34 +00:00
print the number of characters, not bytes.
.It Fl w
2011-05-23 01:36:34 +00:00
print the number of words.
.El