Some of this syntax is peculiar to the find command. Here is a good intro:
http://www.athabascau.ca/html/depts/compserv/webunit/HOWTO/find.htm
As far as how the -mtime option is used, I believe you are correct.
Whoever gave you this advice was probably short at least 12 oz. of
dark roast
On Fri, 5 Mar 2010, t.piwowar wrote:
The following was suggested to me for a cron job to delete old emails
from a spam folder. I don't completely understand the syntax at the
end of the line.
find /home/user/mail/domain/email/.spam -type f +mtime 30 -exec rm -f '{}'
\;
should not +mtime
On Mar 5, 2010, at 2:24 PM, Michael Fernando wrote:
However, this is a dangerous command. Run the following first to
see what it does. If you like the output, run it with 'rm -f'
instead of 'ls -l'
Good advice that is.
Thanks JE and MF. I feel in control now.
On Fri, 5 Mar 2010, t.piwowar wrote:
The following was suggested to me for a cron job to delete old emails
from a spam folder. I don't completely understand the syntax at the
end of the line.
find /home/user/mail/domain/email/.spam -type f +mtime 30 -exec rm -f '{}'
\;
should not +mtime