转:https://unix.stackexchange.com/questions/335716/grep-returns-binary-file-standard-input-matches-when-trying-to-find-a-string
You can use grep -a 'pattern'.
from man grep page:
-a, --text
Process a binary file as if it were text; this is equivalent to the --binary-files=text option.
没有评论:
发表评论