On Fri, 2007-09-14 at 13:22 -0400, Kenneth Schneider wrote:
> Can someone explain the following "find" error. The "path" is specified
> by the "." in the command line.
> 
> find . -name *copy_3* -exec rm {}\;
> 
> find: paths must precede expression


It means you have something in . that matches *copy_3* so you get file
expansion.

find . -name \*copy_3\* -exec rm {}\;

or 

find . -name "*copy_3*" -exec rm {}\;

-JP
-- 
JP Rosevear <[EMAIL PROTECTED]>
Novell, Inc.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to