안녕하세요.
유닉스 리눅스 프로그래밍 필수 유틸리티 책 중
질문이 있습니다.
mkcscope.sh 파일 작성
내용 :
#!/bin/sh
rm -rf cscope.files cscope.files
find . (-name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.s' -o -name '*.S' ) -print > cscope.files
후에 셸에
$ chmod 755 mkcscope.sh
$ mv mkcscope.sh /usr/local/bin
후에
mkcscope.sh 명령을 수행하면
.find: invalid expression; you have used a binary operator '-o' with nothing before it.
cscope: no source files found
라는 에러 메시지가 출력 됩니다.
왜 에러가 나는지 잘 모르겠습니다.
답변 부탁 드립니다.
.
제일 처음 -name 앞에 한칸 띄워보세요.