WC - word, character, and line counts for files.

Syntax:

wc [(+|-)Roff] [(+|-)Verbose] [indeX=file] file file...

Examples:

wc myfile
wc +r myfile
wc filea fileb -v
wc index=fileoffiles

Options:

-Verbose
minimizes the amount of output sent to the terminal.
+Roff
ignores all ROFF control lines (lines beginning with a ".") when calculating the word count. Since TF commands have the same format as ROFF commands, +Roff also ignores TF commands.
indeX=file
specifies an index file. This is a text file where each line contains a separate pathname. WC processes each of these pathnames individually.

Description:

For each file given, WC counts the number of words, characters, and lines. A word is defined to be a string of alphanumerics, ignoring any backspaces, underlines, apostrophes, dashes, or pluses. In calculating the character count, WC counts all characters.

If more than one file is counted, WC displays the total number of characters, words, and lines in all files unless you specify -Verbose.

Copyright © 1996, Thinkage Ltd.