Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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