wc: Print byte, word, and line counts
wc counts the number of bytes, whitespace-separated words, and
newlines in each given file, or standard input if none are given
or for a file of `-'. Synopsis:
wc [option]... [file]...
wc prints one line of counts for each file, and if the file was
given as an argument, it prints the file name following the counts. If
more than one file is given,
wc prints a final line
containing the cumulative counts, with the file name `total'. The
counts are printed in this order: newlines, words, bytes.
wc prints all three counts. Options can specify
that only certain counts be printed. Options do not undo others
previously given, so
wc --bytes --words
prints both the byte counts and the word counts.
The program accepts the following options. Also see section Common options.
Go to the first, previous, next, last section, table of contents.