Notice
Recent Posts
Recent Comments
목록man grep (1)
준호씨의 블로그
grep 했을 때 Binary file (standard input) matches 나올 때 해결방법
간혹 특정 텍스트 파일을 grep 할 때 해당 파일을 텍스트 파일로 인식 하지 않고 Binary file 로 인식 할 때가 있다. $ grep hello doc.txt Binary file (standard input) matches 이럴 때는 -a (혹은 --text) 옵션을 이용하면 된다. $ grep hello doc.txt -a man grep 해 보면 다음과 같은 내용을 찾을 수 있다. -a, --text Treat all files as ASCII text. Normally grep will simply print ``Binary file ... matches'' if files contain binary characters. Use of this option forces grep to out..
개발이야기
2016. 3. 30. 23:01