Linux grep 命令报错:binary file (standard input) matches cat

场景: 在linux服务器上查看日志,使用以下命令:linux cat root.log | grep  "xxxxxxxxxx"服务器 报错:spa binary file (standard input) matches cat 日志 缘由:意思为文件是二进制文件,不能直接grepinput 解决方案:file cat root.log | grep -a  "xxxxxxxxxx" 二进制
相关文章
相关标签/搜索