WC(1) COMMAND REFERENCE WC(1)
NAME
wc - word count
SYNOPSIS
wc [ -c ] [ -l ] [ -v ] [ -w ] [ name... ]
DESCRIPTION
Wc counts lines, words, and characters in the named files,
or in the standard input if no name appears. A word is a
maximal string of characters delimited by spaces, tabs or
newlines.
If you specify any of the options -l, -w, or -c, the
selected counts (lines, words, or characters) are displayed.
The default is -lwc.
The -v option asks for a verbose output format with headers.
OPTIONS
-c Calculates the number of characters in the file.
-l Calculates the number of lines in the file.
-v Asks for a verbose output format with headers.
-w Calculates the number of words in the file.
EXAMPLES
The following invocation of wc prints a line of headers
labeling each value returned, followed by a line of the
actual values for the file test:
wc -v test
The next invocation of wc prints a heading line, followed by
the number of lines and characters in the file test:
wc -lcv test
RETURN VALUE
[NO_ERRS] Command completed without error.
[USAGE] Incorrect command line syntax. Execution
terminated.
[P_WARN] A system error occurred. Execution continues.
Printed 10/17/86 1
WC(1) COMMAND REFERENCE WC(1)
See intro(2) for more information on system
errors.
SEE ALSO
ls(1), du(1).
Printed 10/17/86 2
%%index%%
na:72,51;
sy:123,174;
de:297,586;
op:883,322;
ex:1205,435;
rv:1640,293;2077,105;
se:2182,129;
%%index%%000000000127