在Linux使用grep命令,从文件中抓取显示特定的信息,如下:

cat 文件名 | grep 特定条件 --->   cat xxxx | grep 12345

结果报错:Binary file (standard input) matches;经过查询后,意思为文件是二进制文件,不能直接grep,解决办法:

cat 文件名 | grep -a 特定条件 ---> cat xxxx | grep -a 12345

相关文章:

  • 2021-09-16
  • 2021-04-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
  • 2022-03-02
猜你喜欢
  • 2022-12-23
  • 2021-11-23
  • 2021-06-01
  • 2021-10-21
相关资源
相似解决方案