Skip to content

Instantly share code, notes, and snippets.

@mittenchops
Created July 17, 2013 20:09
Show Gist options
  • Save mittenchops/6023994 to your computer and use it in GitHub Desktop.
Save mittenchops/6023994 to your computer and use it in GitHub Desktop.
Find all files that contain a particular word, recursively in the current directory. This is the version that doesn't use xargs, which I think would look more like this: http://www.cyberciti.biz/faq/howto-recursively-search-all-files-for-words/
find . -type f -exec grep -l "wordofinterest" {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment