Linux Find in Files

2013-09-24

Just for easy reference...

find . -print0 | xargs -0 grep 'Search String' -sl

PHP files only...

find . -iname '*php' -print0 | xargs -0 grep 'Search String' -sl

Case insensitive double search... (grep -Z is like find -print0)

find . -print0 | xargs -0 grep '_POST' -sliZ | xargs -0 grep 'query' -sli