What does Linux wc -l or –lines option do?

You can use wc -l or –lines option to print only the newline 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