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