grep when Binary file matches **. log how to solve


Operation grep "hello world" test.log

The results Binary file test.log matches

The reason: grep think test.log is a binary file

Solution: grep -a "hello world" test.log

Guess you like

Origin www.cnblogs.com/tonyauto/p/11640918.html