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

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"

 

posted @ 2023-04-18 16:27  飞鹰之歌  阅读(776)  评论(0编辑  收藏  举报