wc(1) DG/UX 4.30 wc(1)
NAME
wc - word count
SYNOPSIS
wc [ -lwc ] [ names ]
DESCRIPTION
Wc counts lines, words, and characters in the named files,
or in the standard input if no names appear. It also keeps
a total count for all named files. A word is a string of
characters delimited by spaces, tabs, or new-lines.
You can use the options l, w, and c in any combination to
specify that a subset of lines, words, and characters are to
be reported. The default is -lwc.
When names are specified on the command line, they will be
printed along with the counts.
EXAMPLES
$ wc attachment
Prints the number of lines, words, and characters in the
file "attachment" on the standard output.
$ wc -cw memo
Prints the number of characters and words in the file
"memo".
$ who | wc -l
Prints the current number of system users on the standard
output.
Licensed material--property of copyright holder(s) Page 1