从当前目录所有的.PHP文件当中 查找内容关键字存在为 ‘test’的文件

find -name '*.php' | xargs grep -l 'test'

也可以为

find -name '*.php' exec grep -l 'test' {} \;