[Top] [Prev] [Next]

wc - word (and other things) counter

wc [-lwbrc] [file...]


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:
' '






A word is defined to be a sequence of non-whitespace characters separated by one or more whitespace characters.

-l (default)

Count lines

-w (default)

Count words

-c (default)

Count characters


Count bytes


Count erroneously encoded characters

See Also
UTF, Unicode, ASCII - character set and format in Appendix A

[Top] [Prev] [Next]

Copyright © 1996,Lucent Technologies, Inc. All rights reserved.