What does the -w option do in the wc command?

0206

The -w option in the wc command is used to count the number of words in a specified file. For example, you can use the following command to count the words in a file named spellbook.txt:

wc -w spellbook.txt

This will output the total number of words present in that file.

0 Comments

no data
Be the first to share your comment!