The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 08-22-2008
Danny.Chouinard Danny.Chouinard is offline
Registered User
  
 

Join Date: May 2008
Posts: 21
Actually, you should quote the -name pattern if it contains wildcards, otherwise it'll break if you have more than one match:

$ ls
345test567 768test234
$ find . -name *test* -print
find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]
$ find . -name "*test*" -print
./768test234
./345test567
$