Joinc

导航

grep的时候Binary file matches **.log 怎么解决


操作 grep "hello world" test.log

结果 Binary file test.log matches

原因:grep认为test.log是二进制文件

解决方法:grep -a "hello world" test.log

posted on 2019-10-09 12:01  Joinc  阅读(923)  评论(0编辑  收藏  举报