-a,--text Process a binary file as if it were text; this is equivalent to the --binary-files=text option. --binary-files=TYPE If the first few bytes of a file indicate that the file contains binary data,assume that the file is of type TYPE. By default,TYPE is binary,and grep normally outputs either a one-line message saying that a binary file matches,or no message if there is no match. If TYPE is without-match,grep assumes that a binary file does not match; this is equivalent to the -I option. If TYPE is text,grep processes a binary file as if it were text; this is equivalent to the -a option. Warning: grep --binary-files=text might output binary garbage,which can have nasty sIDe effects if the output is a terminal and if the terminal driver interprets some of it as commands.
请在第二段末尾标注谨慎的字样.您可能希望将结果从grep重定向到新文件,并使用vi / less进行检查.
总结以上是内存溢出为你收集整理的如何通过看起来像文本的二进制文件?全部内容,希望文章能够帮你解决如何通过看起来像文本的二进制文件?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)