Skip to content

Instantly share code, notes, and snippets.

@gustavopaes
Created March 23, 2010 16:26
Show Gist options
  • Save gustavopaes/341353 to your computer and use it in GitHub Desktop.
Save gustavopaes/341353 to your computer and use it in GitHub Desktop.
Find a string on various files with a specific extension
find ./ -name "*.php" -print0 | xargs -0 grep "my query string" >> found.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment