[Top] [Prev] [Next]

wc

wc - word (and other things) counter

Synopsis

wc [-lwbrc] [file...]

Description

The wc command sends to standard output a tally of words, lines and characters found in the named UTF text files. If no files are named, standard input is read. One line is output per file. If multiple files are specified, an additional total line is produced.

Values are output in decimal format and are output in the same order as the listing of options (below).

The whitespace characters used in this calculation are ' ' (blank), '\t' (tab), and '\n' (newline). A word is defined to be a sequence of non-whitespace characters separated by one or more whitespace characters.

Options
-l (default)

Count lines.

-w (default)

Count words.

-c (default)

Count characters.

-b

Count bytes.

-e

Count erroneously encoded characters.

See Also
utf

Discussion of the UTF format



[Top] [Prev] [Next]

infernosupport@lucent.com
Copyright © 1996,Lucent Technologies, Inc. All rights reserved.