Script needed for counting words from logfiles!

Anyone have a script (perl/shell) to count a given word in any file(i.e maillog)

Tried at google, but didn't find anything useful

 

 

 

 

Top