http://www.mediacollege.com/cgi-bin/man/page.cgi?topic=find


NON-BUGS

       $ find . -name *.c -print
       find: paths must precede expression
       Usage: find [-H] [-L] [-P] [path...] [expression]

       This  happens  because  *.c has been expanded by the shell resulting in
       find actually receiving a command line like this:

       find . -name bigram.c code.c frcode.c locate.c -print

       That command is of course not going to work.  Instead of  doing  things
       this way, you should enclose the pattern in quotes:
       $ find . -name ?*.c? -print


'Programming > Linux Coding' 카테고리의 다른 글

Linux 디바이스 드라이버의 작성  (0) 2016.04.27
자신만의 Command 만들기 - alias  (0) 2016.04.26
Linux Commands  (0) 2016.04.14
SVN(Subvision) 간단히 사용하기  (0) 2016.04.14
Ex10. Makefile - lv4  (0) 2016.02.25

+ Recent posts