WC(1) — USER COMMANDS
NAME
wc − word count
SYNOPSIS
wc [ −lwc ] [ filename ... ]
DESCRIPTION
wc counts lines, words, and characters in filenames, or in the standard input if no filename appears. It also keeps a total count for all named files. A word is a string of characters delimited by spaces, tabs, or newlines.
OPTIONS
lCount lines.
wCount words.
cCount characters.
The default is −lwc (count lines, words, and characters).
When files are specified on the command line, their names will be printed along with the counts.
EXAMPLE
angel% wc /usr/man/man1/{csh.1,sh.1,telnet.1}
18761122365895 /usr/man/man1/csh.1
674331020338 /usr/man/man1/sh.1
26011106834 /usr/man/man1/telnet.1
28101564393067 total
angel%
Sun Release 3.2 — Last change: 17 February 1986