Find Command Syntax
drew at mykitchentable.net
Wed Sep 22 09:04:49 PDT 2004
On 9/22/2004 8:39 AM Matthew Seaman wrote:
>On Wed, Sep 22, 2004 at 08:26:07AM -0700, Drew Tomlinson wrote:
>>I'm trying to write a script to feed the mail in my spam folder to
>>Spamassassin's sa-learn and then delete the mails older than 1 day in
>>that spam folder. Here's my current directory listing:
>>I'm trying to use the find command to do the deleting but am having
>>trouble with the syntax. For testing, I'm using this command:
>>blacklamb> find /path/to/Maildir/.Spam/cur \! -newerct 1d -print
>>It finds nothing. I read in the manual that time specifications don't
>>have much meaning without the '-' or '+' operator so I try adding it:
> find /path/to/Maildir/.Spam/cur -type f -mtime +1 -print
>Or you might want to use -ctime instead of -mtime -- I think mtime is
>probably a more reliable measure than ctime.
Thanks for your reply. This seems to work. However I'm confused.
Should I use -ctime or -mtime?
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books, & More!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2801 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040922/284e4d1b/smime.bin
More information about the freebsd-questions