Если только проблема в том, что GREP
лечит его как двоичный, скажите GREP
, чтобы найти его независимо от:
$ head /bin/bash > out
$ echo "test" >> out
$ grep test out
Binary file out matches
$ grep -a test out
test
из MAN GREEP
:
-a, --text
Process a binary file as if it were text; this is equivalent to
the --binary-files=text option.