grep:Binary file (standard input) matches

grep "key" xxx.log时输出

Binary file xxx.log matches

百度了一下:grep觉得这是二进制文件。解决方式:grep -a。

grep -a "key" xxx.log

posted @ 2016-03-16 15:16  zfyouxi  阅读(234)  评论(0编辑  收藏  举报