grep 文件报错 “Binary file ... matches”的处理

来源:互联网 发布:搜题软件 编辑:程序博客网 时间:2024/05/17 09:01
grep 文件报错 “Binary file ... matches”的处理

抱着个错误是因为grep不能处理二进制的文件,

-a, --text

              Process a binary file as if it were text; this is equivalent to the --binary-files=text option. 

这个时候加上-a参数就解决了 

0 0
原创粉丝点击