Quantcast
Channel: grep for pattern - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 2

Answer by markgraf for grep for pattern

$
0
0

From https://www.gnu.org/software/grep/manual/html_node/Usage.html

Why does grep report “Binary file matches”?

If grep listed all matching “lines” from a binary file, it would probably generate output > that is not useful, and it might even muck up your display. So GNU grep suppresses output > from files that appear to be binary files. To force GNU grep to output lines even from files that appear to be binary, use the -a or ‘--binary-files=text’ option. To eliminate > the “Binary file matches” messages, use the -I or ‘--binary-files=without-match’ option.


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>