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


操作 grep "hello world" test.log

结果 Binary file test.log matches

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

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

猜你喜欢

转载自www.cnblogs.com/tonyauto/p/11640918.html