cat *.c | grep -H -n getnchar 이렇게 명령어를 입력했더니 파일명대신 (표준 입력)이라고 나옵니다. 파일명이 출력되도록 하려면 어떻해 해야하나요?
$ grep -H -n getnchar *.c
-- C FAQ: http://www.eskimo.com/~scs/C-faq/top.html Korean Ver: http://www.cinsk.org/cfaqs/
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html Korean Ver: http://cinsk.github.io/cfaqs/
$ grep -H -n getnchar
--
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
Korean Ver: http://www.cinsk.org/cfaqs/
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
Korean Ver: http://cinsk.github.io/cfaqs/