Skip to content

Instantly share code, notes, and snippets.

@ramdesh
Created August 20, 2012 07:06
Show Gist options
  • Save ramdesh/3401751 to your computer and use it in GitHub Desktop.
Save ramdesh/3401751 to your computer and use it in GitHub Desktop.
Checking for strings in Sahana Vesuvius which haven't been enclosed in a _t() function
grep -nr --include="*.php" "'" ~/vesuvius | grep -Ev "_t\(\"|_t\(\'|\[\"|\[\'|//|/\*|\*|\*/|SELECT|UPDATE|INSERT|DELETE|WHERE|VALUE|VALUES|ADD" >single-quote-greps.txt
grep -nr --include="*.php" '"' ~/vesuvius | grep -Ev "_t\(\"|_t\(\'|\[\"|\[\'|//|/\*|\*|\*/|SELECT|UPDATE|INSERT|DELETE|WHERE|VALUE|VALUES|ADD" >double-quote-greps.txt
@ramdesh
Copy link
Author

ramdesh commented Feb 28, 2013

Uses grep to identify single quote and double quote strings within a PHP application, Sahana Vesuvius. http://github.com/sahana/vesuvius

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment