Hi, greetings from a newbie. I have been using Linux for 5 years, but not really good at anything
I am getting really confused by the command (GNU) find. Depending on the files existing in the current directory, "find" gave me different responses. Could anyone please give me a hint? I am using Debian, Sarge5. Thanks a lot!
-------------------
jchen:~/tmp$ ls -l
total 4
-rw-r--r-- 1 jchen jchen 13 2006-11-11 17:47 test.txt
-rw-r--r-- 1 jchen jchen 0 2006-11-11 17:41 test.txt~
jchen:~/tmp$
jchen:~/tmp$ find -name *test*
find: paths must precede expression
Usage: find [path...] [expression]
jchen:~/tmp$
jchen:~/tmp$ rm -f ./test.txt~
jchen:~/tmp$
jchen:~/tmp$ find -name *test*
./test.txt
jchen:~/tmp$
jchen:~/tmp$ touch ./test2.txt
jchen:~/tmp$
jchen:~/tmp$ find -name *test*
find: paths must precede expression
Usage: find [path...] [expression]
jchen:~/tmp$