grep returns
Binary file test.log matches
For example
echo "line1 re x00
line2
line3 re
" > test.log # in zsh
echo -e "line1 re x00
line2
line3 re
" > test.log # in bash
grep re test.log
I wish the result will show line1 and line3 (total two lines).
Is it possible to use tr
convert the unprintable data into readable data, to let grep work again?