Created
March 28, 2017 22:38
-
-
Save kikoseijo/055737670161a588239855a4ccdc61cc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
IFS=$'\n' | |
while read writable_dir | |
do | |
find "$writable_dir" -type f -not -iname '*.php' -print0 | xargs -0 egrep -i "(<\?php|<\?=|<\? *(?!(xml)))" --color | |
done < writable_dirs.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment