wc [OPTION]... [FILE]...
$ ls | wc -w 14
$ wc -l test.txt 26 test.txt
$ wc -w test.txt 42 test.txt
$ wc -m test.txt 156 test.txt
$ wc -c test.txt 156 test.txt
$ wc test.txt 26 42 156 test.txt
$ wc -l file1.txt file2.txt 15 file1.txt 20 file2.txt 35 total
$ echo "hello world" | wc -w 2
-l, --lines print the newline counts -w, --words print the word counts -m, --chars print the character counts -c, --bytes print the byte counts -L, --max-line-length print the maximum display width --files0-from=F read input from the files specified by NUL-terminated names in file F --help display this help and exit --version output version information and exit