How to count the number of lines

The number of lines in a file
wc -l filename
If you have many files in a folder and you want to count all lines in all files you do:
cat ./*.* | wc -l
or just the log files:
cat ./*.log | wc -l

Leave a Reply

*
To prove you're a person (not a spam script), type the answer to the math equation shown in the picture. Click on the picture to hear an audio file of the equation.
Click to hear an audio file of the anti-spam equation