Skip to Content
gnux

-w, --words

Print the word counts.

An option of wcx.

Usage

wcx -w [FILE]...
wcx --words [FILE]...

Details

ShortLongValueDefaultMeaning
-w--wordsnoneprint the word counts

Examples

Count the words of an essay

wcx -w essay.txt
wcx -wl essay.txt

Count the words of text from standard input

echox 'the quick brown fox' | wcx -w

Help in the terminal

gnux help wcx --words

On this page