WordCount counts lines, words, and characters similar to the Unix wc command.
Format:
WordCount [[FROM] pattern...] [LINES] [WORDS] [BYTES|CHARS]
Template:
FROM/M,LINES/S,WORDS/S,BYTES=CHARS/S
The WordCount command counts lines, words, and characters in the named
files. If no files are specified, WordCount reads from the default input,
making it possible to use it with pipes.
When multiple files are specified on the command line, their names will
be printed along with the counts.
WordCount also keeps a total count for all named files.
The switches LINES, WORDS, and CHARS may be used to specify that a
subset of lines, words, and characters are to be reported.
WordCount has a broad definition of a word. It considers a word to be any
string of characters delimited by spaces, tabs, or new-lines.
Using no switches is the same as using all three.
Examples:
1> wordcount #?.doc
1> list SYS: nohead quick all files | wordcount lines
Binary, source code, and documentation included.
Under 2-clause BSD License.
|