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 coffee.

On 3/5/10, t.piwowar <[email protected]> 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 30" be "-mtime +30"
>
> What does "'{}'" (quote lbrace rbrace quote) mean?
>
> What does the "\" at the end mean?


*************************************************************************
**  List info, subscription management, list rules, archives, privacy  **
**  policy, calmness, a member map, and more at http://www.cguys.org/  **
*************************************************************************

Reply via email to