Skip to content

Instantly share code, notes, and snippets.

@anscii
Created January 8, 2014 08:41
Show Gist options
  • Save anscii/8313678 to your computer and use it in GitHub Desktop.
Save anscii/8313678 to your computer and use it in GitHub Desktop.
Find all *.php files containing table_name AND any of words "insert|update|delete".
grep --include="*.php" -l -R table_name . | xargs egrep -l -i "insert|update|delete"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment