##文件名+内容
grep -r “查询内容” 文件目录
##只显示包含内容的文件名
grep -r -l “查询内容” 文件目录
##文件名+内容
find 文件目录 -type f |xargs grep “查询内容”;
–include 用于只查找某些文件
–exclude-dir用于排除某些文件夹
##文件名+内容
grep -r “查询内容” 文件目录
##只显示包含内容的文件名
grep -r -l “查询内容” 文件目录
##文件名+内容
find 文件目录 -type f |xargs grep “查询内容”;
–include 用于只查找某些文件
–exclude-dir用于排除某些文件夹