grep的时候Binary file matches **.log 怎么解决
来源:互联网 发布:dji视频编辑软件 编辑:程序博客网 时间:2024/06/06 21:54
grep的时候Binary file matches **.log 怎么解决
专业回答
操作 grep "xxx" a.log
结果 Binary file a.log matches
原因:grep认为a.log是二进制文件
解决方法:grep -a "xxx" a.log
可以看看grep -a参数的功能
[appadmin@test3 ~/tmp]$ grep --help |grep '/-a'
-a, --text equivalent to --binary-files=text
即,让二进制文件等价于文本文件
注:zgrep遇到同类问题时,解决方法是一样的
结果 Binary file a.log matches
原因:grep认为a.log是二进制文件
解决方法:grep -a "xxx" a.log
可以看看grep -a参数的功能
[appadmin@test3 ~/tmp]$ grep --help |grep '/-a'
-a, --text equivalent to --binary-files=text
即,让二进制文件等价于文本文件
注:zgrep遇到同类问题时,解决方法是一样的
0 0
- grep的时候Binary file matches **.log 怎么解决
- grep的时候Binary file (standard input) matches 怎么解决?
- grep或zgrep的时候Binary file (standard input) matches 怎么解决?
- linux下grep的时候报Binary file stdout.log matches解决方法
- grep的时候Binary file (standard input) matches
- Linux 使用grep命令 遇到 Binary file matches **.log 解决方法
- grep 文件报错 “Binary file ... matches”的处理
- grep:Binary file (standard input) matches
- grep:Binary file (standard input) matches
- grep returns Binary file (standard input) matches
- grep:Binary file (standard input) matches
- grep:Binary file (standard input) matches
- grep:Binary file (standard input) matches
- grep:Binary file (standard input) matches
- grep:Binary file (standard input) matches
- 错误解决:grep时出现错误 Binary file (standard input) matches
- Linux命令:grep,报错Binary file (standard input) matches
- grep一个文件时,报错“Binary file ... matches”
- 15个构建交互式图表的最佳jQuery插件
- linux文件权限管理
- CronTrigger 配置
- ocp-323
- IOS开发——隐藏键盘的4种方法
- grep的时候Binary file matches **.log 怎么解决
- ocp-324
- 【Lua】C-API
- 博客分享】优秀的有趣的博客
- java内部类学习,常规内部类,匿名内部类等
- ocp-325
- 分布式事务-简单总结
- java.io.Serializable浅析
- ocp-326