Name

wc - Word count

Syntax

wc [ -lwc ] file

Description

wc counts lines, words and characters in one or more files. A word is a maximal string of characters delimited by spaces, tabs, or newlines.

The -l option gives a line count. The -w option gives a word count. The -c flag gives a character count. If no option is given, the default is to count the lines, words and characters ( -lwc ).

See Also

grep(C), tail(C)