« Return to Thread: find missing parameter

find missing parameter

by prz :: Rate this Message:

Reply to Author | View in Thread

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 any other command (ls)
removing the exec returns the correct file
Best Regards, Guy Przytula

 « Return to Thread: find missing parameter