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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…