Thursday 9 June 2016

search php files for text in unix (ubuntu) using grep

grep -R --include="*.php" "pattern" /path/to/dir

that's it