find -exec help
Hi All,
I am trying to use the find command to find files not modified for more than 5 minutes and move the file(s) to another dir. But the error is missing argument to '-exec' find . -mmin +5 -type f -exec mv {} mydir \; find: missing argument to `-exec' What did I miss out? Please help. Thanks |
Quote:
At least it did not produce an error message. Perhaps try something like: Code:
find . -mmin +5 -type f -exec 'mv {} mydir' \; |
I don't see exactly what the word 'mydir' stands for :
An environment variable, a real directory, or what ? |
Thanks michux,
Now there's a new progress but still not working with the single quote '', the message is find: mv myfile mydir: no such file or directory berbae, mydir is just a directory I created. |
All times are GMT -5. The time now is 01:34 PM. |