Created
August 20, 2012 07:06
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uses grep to identify single quote and double quote strings within a PHP application, Sahana Vesuvius. http://github.com/sahana/vesuvius