Mail Archives: cygwin/2001/03/15/18:45:36
On Thu, 15 Mar 2001, Stein M. Eliassen wrote:
>Hi,
>
>When trying:
>find . -mtime 1 -exec rm {}\ ;
>
>I'm receiving 'find: missing argument to -exec', I've tried several variants
>too.
>
>Even searched the archives and found some post's regarding the subject, but I'm
>still not able to solve it.
>
>Someone knows what's the problem here?
Your familiarity with find?
not
find . -mtime 1 -exec rm {}\ ;
but
find . -mtime 1 -exec rm {} \;
-exec command ;
Execute command; true if 0 status is returned. All
following arguments to find are taken to be argu-
ments to the command until an argument consisting
of `;' is encountered. The string `{}' is replaced
by the current file name being processed everywhere
it occurs in the arguments to the command, not just
in arguments where it is alone, as in some versions
of find. Both of these constructions might need to
be escaped (with a `\') or quoted to protect them
from expansion by the shell. The command is exe-
cuted in the starting directory.
--
---- In view of the NSA's non-cooperation with Congress over Echelon ----
drug anthrax rift valley lassa DNA RNA plutonium president bomb heroin
(Protest vote. Let's see if they have a counter.)
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -