What does Linux wc -w or –words option do?

You can use wc -w or –words option to print only the word counts. By default, wc command prints newline, word, and byte counts for each FILE, and a total line if more than one FILE is specified.

Example:

Leave a Reply