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

0158

The -l option in the wc (word count) command is used to count the number of lines in a specified file. For example, if you want to count the lines in a file named spellbook.txt, you would use the following command:

wc -l spellbook.txt

This command will output the number of lines present in spellbook.txt.

0 Comments

no data
Be the first to share your comment!