[stack@undercloud ~]$ ipmitool -I lanplus -U hp -P password -H 192.168.1.11 fru list | grep "Product Serial" Binary file (standard input) matches ...
在Linux使用grep命令,從文件中抓取顯示特定的信息,如下: cat文件名 grep 特定條件 gt cat xxxx grep 結果報錯:Binary file standard input matches 經過查詢后,意思為文件是二進制文件,不能直接grep,解決辦法: cat 文件名 grep a 特定條件 gt cat xxxx grep a ...
2014-04-10 14:11 0 2760 推薦指數:
[stack@undercloud ~]$ ipmitool -I lanplus -U hp -P password -H 192.168.1.11 fru list | grep "Product Serial" Binary file (standard input) matches ...
在執行 tail -fn100 error.log | grep 'code been'命令時會出現 Binary file (standard input) matches的提示,說明系統把grep的輸入當成一個二進制文件了,解決辦法: tail -fn100 error.log | grep ...
原文鏈接 http://blog.csdn.net/yaochunnian/article/details/7261006 ...
仔細想想,這個問題遇到很多次了,之前一直以為很復雜,一搜索發現解決這么簡單,記錄一下做備忘。 此時使用-a參數接口。 -a, --text equivalent to --binary-files=text,即讓二進制文件等價於文本。 注:zgrep遇到同樣問題,解決方法 ...
原創聲明:本文系博主原創文章,轉載或引用請注明出處。 grep命令是linux下常用的文本查找命令。當grep檢索的文件是二進制文件時,grep命令會提示: 如果此時確實需要對二進制文件進行匹配,可以加 -a 參數,使grep將二進制文件當作文本文件來進行匹配 ...
grep(global search regular expression(RE) and print out the line,全面搜索正則表達式並把行打印出來)是一種強大的文本搜索工具,它能使用正則表達式搜索文本,並把匹配的行打印出來。 選項 grep命令常見用法 在文件中搜索一個 ...
、egrep和fgrep。egrep和fgrep的命令只跟grep有很小不同。egrep是grep的擴展 ...
基本用法 grep 'str' filename 在filename里查找'str'字符串 ...