--On 30 June 2006 02:42 -0700 Brian Dessent wrote:
First, -exec is a bad way to do this. It will have to fork/exec a copy
of rm once for each file to be deleted, which is extraordinarily slow
under Cygwin. Use xargs instead:
find . -name db\* -mtime +2 -type f -print0 | xargs -0 rm
This will
prz wrote:
> I have a small problem with find command
> whenever I specify the -exec option this error is displayed
>
> /cygdrive/c/workdir: find . -name "db*" -mtime +2 -type f -exec /bin/rm {}
> find: missing argument to `-exec'
>
> tried quotes - single double ... with/without path to rm or
her
command (ls)
removing the exec returns the correct file
Best Regards, Guy Przytula
--
View this message in context:
http://www.nabble.com/find-missing-parameter-tf1871842.html#a5116344
Sent from the Cygwin Users forum at Nabble.com.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe
3 matches
Mail list logo