命令: grep -r --include=*.c "xxx" dir
eg: 查找当前目录下包含字符串load的所有.java文件
grep -r --include=*.java "load" ./
命令: grep -r --include=*.c "xxx" dir
eg: 查找当前目录下包含字符串load的所有.java文件
grep -r --include=*.java "load" ./
转载于:https://my.oschina.net/u/1778261/blog/727022