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

find missing parameter

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