Linux

grep 바이너리 파일 일치함

구차니 2021. 12. 6. 10:27

grep 하여 검색된 줄에 ASCII printable 영역이 아닌 내용이 있을때에는

무조건 "바이너리 파일 일치함" 이라는게 나오는데

-a 옵션을 주면 강제로 텍스트로 출력을 해준다.

 

       -a, --text
              Process  a binary file as if it were text; this is equivalent to the --binary-files=text option.

[링크 : https://junho85.pe.kr/434]