Wednesday, 18 September 2013

Counting the number of occurrences in a file

$ cat file.log | grep java.lang.NullPointerException | wc -l