tell grep to ignore binary files code example
Example 1: grep binary files
# Both are equivalent to the --binary-files=text option.
grep --text
grep -a
Example 2: grep ignore binary file
# Process a binary file as if it did not contain matching data.
# Equivalent to grep --binary-files=without-match
grep -I
# Example
find . | xargs grep -I "string-to-find";