[oclug] find command

Milan Budimirovic milan.budimirovic at sympatico.ca
Tue Jul 8 07:05:52 EDT 2003


On Tue, 2003-07-08 at 01:48, Bob Lockie wrote:
> $ find . -name *\.moc\.cpp -print
> find: paths must precede expression
> Usage: find [path...] [expression]
> 
> What is wrong with what I am trying to do?
> 
> 

You need to quote the pattern to keep the shell trying to expnd it. That
is,


  $ find . -name "*\.moc\.cpp" -print


should work.




More information about the OCLUG mailing list