Skip to content

Instantly share code, notes, and snippets.

@Kjuly
Created August 4, 2013 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kjuly/6150596 to your computer and use it in GitHub Desktop.
Save Kjuly/6150596 to your computer and use it in GitHub Desktop.
Use grep to search "THE_TARGET_CONTENT" in all files. It'll list all files that include the content
// Search "THE_TARGET_CONTENT" in all .m files
find . -type f -iname "*.m" -exec grep -i "THE_TARGET_CONTENT" {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment