Posted By

gabrielsmith on 10/26/09


Versions (?)

Linux: Search inside files

 / 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

  1. find . -name '*.php' -exec grep -l 'my text pattern' {} \;

Report this snippet  

You need to login to post a comment.