linux 多文件中 查找关键字
从当前目录所有的.PHP文件当中 查找内容关键字存在为 ‘test’的文件
?
find -name '*.php' | xargs grep -l 'test'
也可以为
find -name '*.php' exec grep -l 'test' {} \;
?
?
发布时间: 2012-09-24 13:49:41 作者: rapoo
linux 多文件中 查找关键字
从当前目录所有的.PHP文件当中 查找内容关键字存在为 ‘test’的文件
?
find -name '*.php' | xargs grep -l 'test'
也可以为
find -name '*.php' exec grep -l 'test' {} \;
?
?