Error = find: -exec: no terminating ";" or "+"

I am looking for some help trying to get a command working. I want to find some files only and move them, but when I enter this command:

find /Volumes/NEXSAN/Engine\ Folders/Input/DTO_Proxy/* -type f -mtime +7 -exec mv -v {} /Volumes/NEXSAN/.2BeDeleted4realz/

I get this error

find: -exec: no terminating ";" or "+"

I know I probably have it wrong, but I can't figure out what's missing?

Answers


Just terminate the find command with \;, making sure to include the space before the \;.

find /Volumes/NEXSAN/Engine\ Folders/Input/DTO_Proxy/* -type f -mtime +7 -exec mv -v {} /Volumes/NEXSAN/.2BeDeleted4realz/ \;

Need Your Help

multiple buttons on a form

php html

I have a clear button that I want to tie into some php coding. how do I detect if the clear button is pressed. When the user press clear, i'm going to have it update a sql table to clear out entrie...