在使用grep搜索特定文本时,报Binary file standard input matches
cat test |grep "quic"
因为文件是二进制文件,在使用grep时,加上 -a参数,-a参数作用是可将二进制档案视为文本文件搜寻,相当于–binary-files=text这个参数
cat test |grep -a "quic"
在使用grep搜索特定文本时,报Binary file standard input matches
cat test |grep "quic"
因为文件是二进制文件,在使用grep时,加上 -a参数,-a参数作用是可将二进制档案视为文本文件搜寻,相当于–binary-files=text这个参数
cat test |grep -a "quic"