Quote:
Originally Posted by dc144
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
|
I tried the same command on my box and it.. worked
At least it did not produce an error message.
Perhaps try something like:
Code:
find . -mmin +5 -type f -exec 'mv {} mydir' \;
and check ifthat helps...