Skip to content

Instantly share code, notes, and snippets.

@gauravpaliwal
Created August 22, 2011 15:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gauravpaliwal/1162721 to your computer and use it in GitHub Desktop.
Save gauravpaliwal/1162721 to your computer and use it in GitHub Desktop.
Search for a string inside all files in the current directory
find . -type f -print0 | xargs -0 grep -i <pattern>
#Source : http://www.commandlinefu.com/commands/view/3568/search-for-a-string-inside-all-files-in-the-current-directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment