count, highlight and by position - http://www.thegeekstuff.com/2009/03/15-practical-unix-grep-command-examples/ Few examples of how to use grep - http://www.thegeekstuff.com/2011/10/grep-or-and-not-operators http://javarevisited.blogspot.com/2011/06/10-examples-of-grep-command-in-unix-and.html Using regex - http://www.thegeekstuff.com/2011/01/regular-expressions-in-grep-command/ http://www.thegeekstuff.com/2011/01/advanced-regular-expressions-in-grep-command-with-10-examples-%E2%80%93-part-ii/