>_ linuxcommand.dev
Text Processing

wc

Print newline, word, and byte counts.

Syntax
$wc [OPTIONS] [FILE...]
Examples
Examples
$wc file.txt
Examples
$wc -l file.txt
Typical use cases
Count lines
wc -l file.txt
Count words
wc -w file.txt
Note Combine -l, -w, and -c flags as needed.
Export