2015-01-30 15:17:58 -05:00
|
|
|
.Dd January 30, 2015
|
2015-01-31 08:20:02 -05:00
|
|
|
.Dt WC 1
|
2015-01-31 14:37:03 -05:00
|
|
|
.Os sbase
|
2015-01-30 15:17:58 -05:00
|
|
|
.Sh NAME
|
|
|
|
.Nm wc
|
|
|
|
.Nd word count
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl clmw
|
|
|
|
.Op Ar file ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-01-31 08:43:27 -05:00
|
|
|
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-22 21:36:34 -04:00
|
|
|
reads stdin.
|
2015-01-30 15:17:58 -05:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl c
|
2011-05-22 21:36:34 -04:00
|
|
|
print the number of bytes.
|
2015-01-30 15:17:58 -05:00
|
|
|
.It Fl l
|
2011-05-22 21:36:34 -04:00
|
|
|
print the number of lines.
|
2015-01-30 15:17:58 -05:00
|
|
|
.It Fl m
|
2011-05-22 21:36:34 -04:00
|
|
|
print the number of characters, not bytes.
|
2015-01-30 15:17:58 -05:00
|
|
|
.It Fl w
|
2011-05-22 21:36:34 -04:00
|
|
|
print the number of words.
|
2015-01-30 15:17:58 -05:00
|
|
|
.El
|