/ Published in: Bash
will search all php files in the current directory and below searching inside each file for the text pattern. -l switch on grep will only print filename
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
find . -name '*.php' -exec grep -l 'my text pattern' {} \;