The wc is useful for counting lines in a file. In the case of log files, it can count hits. The -l option will print out the number of lines.
wc -l access.logYou can also use it on multiple files — in the following case, on all files with a .log extension:
wc -l *.log
Did you find this post helpful? Leave a comment below, and subscribe to my RSS feed.