2015-01-30 20:17:58 +00:00
|
|
|
.Dd January 30, 2015
|
|
|
|
.Dt WC 1 sbase\-VERSION
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm wc
|
|
|
|
.Nd word count
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl clmw
|
|
|
|
.Op Ar file ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
|
|
|
.Pp
|
2011-05-23 01:36:34 +00:00
|
|
|
prints the number of lines, words, and bytes in each file. If any flags are
|
|
|
|
given, wc will print only the requested information. If no files are given, wc
|
|
|
|
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
|