Binary file (standard input) matches 二、解决思路 [root@test ~]# cat 2e44fc3e1551879f86112ff36ef7671b313a7d0d7ad52ff8b5b080e850e10f50-json.log-20240110 |grep -a '2024-01-10' 想要按文本格式来查看需要在grep后面加-a参数即可,也就是需要使用grep -a grep原本是搜寻文字文件,若拿二进制的...
结果报错:Binary file (standard input) matches;经过查询后,意思为文件是二进制文件,不能直接grep,解决办法: cat 文件名 | grep -a 特定条件 ---> cat xxxx | grep -a 12345
结果报错:Binary file (standard input) matches;经过查询后,意思为文件是二进制文件,不能直接grep,解决办法: cat 文件名 | grep -a 特定条件 ---> cat xxxx | grep -a 12345 本文转自博客园知识天地的博客,原文链接:Linux命令:grep,报错Binary file (standard input) matches,如需转载请自行联系原博主。
1. 解释“grep: (standard input): binary file matches”这条信息的含义 这条信息意味着grep命令在尝试处理标准输入(stdin)时,检测到了二进制文件的内容。grep是一个文本搜索工具,它默认处理的是文本文件。当grep遇到二进制数据时,由于二进制数据可能包含与文本模式不匹配的字节序列,因此grep会报告它找到了一个匹配...
Binary file (standard input) matches 简介 redis日志文件appendonly.aof查看的时候提示Binary file (standard input) matches 工具/原料 redis-server redis-client 方法/步骤 1 准备需要查看的文件,我使用的appendonly.aof使用grep命令查看提示Binary file (standard input) matches 2 想要按文本格式来查看需要在grep...
grep的时候提示Binary file standard input matches,grep识别文件的时候,认为这个是个二进制文件,报告错误解决很简单,价格-a参数,让grep把二进制文件等同文本文件处理
grep出现错误Binary file (standard input) matches 一个很普通的grep在处理一个文本文件的时候,报错: Binary file (standard input) matches 原因未知,解决版本是加入-a (–text)选项。
halfsking 有时grep nohup.out时,会报 Binary file (standard input) matches,grep认为nohup.out是二进制文件,无法grep查找;只需要在grep时增加 -a 参数即可,如下: grep -a "count" nohup.out | wc -l
grep:Binary file (standard input) matches tail -f xxx.log |grep "key"时打印 Binary file (standard input) matches 原因:grep认为这是二进制文件,but我的日志确实不是二进制。。估计和里面的不可见字符有关,grep了一下google,找到解决方案:grep -a。