14 Sep
2007
14 Sep
'07
17:27
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