gpt4 book ai didi

bash - 搜索 'binary file matches' 。如何获得正常的grep输出?

转载 作者:行者123 更新时间:2023-11-29 08:42:32 25 4
gpt4 key购买 nike

<分区>

我有一个 grep 脚本,可以递归地搜索目录。

grep -n -R -e 'search term' -e 'second search term' ./ 

但是我得到的结果如下。请注意,在 JPG 中找到了匹配项,但没有实际结果。

Binary file ./jpg/00015928.jpg matches
Binary file ./jpg/00015296.jpg matches
Binary file ./jpg/00020072.jpg matches

有没有办法像普通的 grep 搜索一样在输出中查看结果?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com