Re: find missing parameter

2006-06-30 Thread Owen Rees
--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

Re: find missing parameter

2006-06-30 Thread Brian Dessent
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