内容查找、查找内容、查找包含指定内容的文件
文章目录
格式1:grep -r “指定内容” 目录
eg:输出包含”指定内容”的文件列表以及简要信息
grep -r "get_next_hash" ~/Download/hotspot-69087d08d473
格式2:grep -r -l “指定内容” 目录
eg:仅输出包含”指定内容”的文件列表
grep -r -l "get_next_hash" ~/Download/hotspot-69087d08d473
格式3:find 文件目录 -type f|xargs grep “指定内容”
eg:输出包含”指定内容”的文件列表以及简要信息
find ~/Download/hotspot-69087d08d473/ -type f|xargs grep "get_next_hash"
记录与总结,2021年 12月 07日 星期二 18:37:14 CST。