wc

Word, line, and byte count

Syntax

wc [OPTION]… [FILE]…

Example

  • wc -c tmpfile count bytes

  • wc -w tmpfile count words

  • wc -l tmpfile count lines