This little piece of code allows you to search the current path for a certain string and return the name of the file and the line number. find . -exec grep -Hn Keyword {} \; Published on: 23 April 2012 Posted by: Sami K. Share it