wc

Word, line, character count

← All commands

Common Examples

$ wc -l file
$ wc -w file
$ find . -name "*.js" | wc -l
$ cat file | wc -c