15 Sep
2007
15 Sep
'07
01:46
On Fri, 14 Sep 2007 13:22:14 -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
*Always* quote arguments when using wildcards. And if you expect find to find a larger number of files, it's more economic to do find . -name \*copy_3\* -print0|xargs -0 rm because you then call rm less often, most likely only once and not for every single file. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org