linux命令-查找包含指定内容的文件

发布时间 2023-04-18 16:31:58作者: 飞鹰之歌

1:grep -r “指定内容” 目录

grep -r "get_next_hash" ~/Download/hotspot-69087d08d473

2:grep -r -l “指定内容” 目录

grep -r -l "get_next_hash" ~/Download/hotspot-69087d08d473

3:find 文件目录 -type f|xargs grep “指定内容”

find ~/Download/hotspot-69087d08d473/ -type f|xargs grep "get_next_hash"