解决方法:grep -a "xxx" a.log可以看看grep -a参数的功能[appadmin@test3 ~/tmp]$ grep --help |grep '/-a'-a, --text equivalent to --binary-files=text即,让二进制文件等价于文本文件