WC(VI) − PWB/UNIX 8/25/77
NAME
wc − word count
SYNOPSIS
wc [ − ] [ name ... ]
DESCRIPTION
Wc counts lines, words, and characters in the named files, or in the standard input if no name appears. A word is a maximal string of printing characters delimited by spaces, tabs or newlines. All other characters are simply ignored. The optional − suppresses all the garbage for a word count only. If the file sentence contains Now is the time for all good men to come
to the aid of their party. on two lines then "wc sentence" would give 2 16 68 sentence indicating that there are 2 lines, 16 words and 68 characters in sentence. Note that the counts are for successively smaller pieces of the file, although occasionally a file will have more lines than words.
SEE ALSO
BUGS