原文:Grep命令出現 Binary file (standard input) matches

在執行 tail fn error.log grep code been 命令時會出現 Binary file standard input matches的提示,說明系統把grep的輸入當成一個二進制文件了,解決辦法: tail fn error.log grep a code been 即可。 a: 把二進制文件當成普通文本,效果和 binary files text ...

2020-04-12 11:17 0 3034 推薦指數:

查看詳情

Linux命令grep,報錯Binary file (standard input) matches

在Linux使用grep命令,從文件中抓取顯示特定的信息,如下: cat 文件名 | grep 特定條件 ---> cat xxxx | grep 12345 結果報錯:Binary file (standard input) matches;經過查詢后,意思為文件是二進制文件 ...

Thu Apr 10 22:11:00 CST 2014 0 2760
grep命令提示"binary file matches **.log"解決方法

仔細想想,這個問題遇到很多次了,之前一直以為很復雜,一搜索發現解決這么簡單,記錄一下做備忘。 此時使用-a參數接口。 -a, --text equivalent to --binary-files=text,即讓二進制文件等價於文本。 注:zgrep遇到同樣問題,解決方法 ...

Wed Jul 10 05:54:00 CST 2019 0 1795
Linux——grep binary file

原創聲明:本文系博主原創文章,轉載或引用請注明出處。 grep命令是linux下常用的文本查找命令。當grep檢索的文件是二進制文件時,grep命令會提示: 如果此時確實需要對二進制文件進行匹配,可以加 -a 參數,使grep將二進制文件當作文本文件來進行匹配 ...

Wed Jul 24 00:44:00 CST 2019 0 909
Linux運行程序出現Cannot execute binary file

在linux上使用gcc -c test.c -o test,然后運行./test提示Permission denied. 或運行test(已設置./到環境變量)顯示程序一直在執行不能完畢。 有兩個 ...

Mon Dec 07 09:02:00 CST 2015 0 1800
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM