Re: Find Command Syntax

2004-09-22 Thread Kliment Andreev
Drew Tomlinson wrote: I've also tried a combination of adding ()'s around the expression but that hasn't worked either. What am I missing? Is this an appropriate choice for what I want to do? Is there another command better suited for this task? Use quotes # find . -name aaa -print differs

Re: Find Command Syntax

2004-09-22 Thread Matthew Seaman
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

Re: Find Command Syntax

2004-09-22 Thread Drew Tomlinson
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

Re: Find Command Syntax

2004-09-22 Thread Matthew Seaman
On Wed, Sep 22, 2004 at 09:04:38AM -0700, Drew Tomlinson wrote: On 9/22/2004 8:39 AM Matthew Seaman wrote: Try: 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.

Re: Find Command Syntax

2004-09-22 Thread Drew Tomlinson
On 9/22/2004 10:34 AM Matthew Seaman wrote: On Wed, Sep 22, 2004 at 09:04:38AM -0700, Drew Tomlinson wrote: On 9/22/2004 8:39 AM Matthew Seaman wrote: Try: 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

RE: Find Command Syntax

2004-09-22 Thread Ralph Hempel
OK, I'm trying to understand the difference. According to the manual -ctime is change of file status and -mtime is last modification time. I think I understand what modification means (changing the contents of the file) but what is change of file status? In my particular situation,

Re: Find Command Syntax

2004-09-22 Thread Matthew Seaman
On Wed, Sep 22, 2004 at 10:47:38AM -0700, Drew Tomlinson wrote: OK, I'm trying to understand the difference. According to the manual -ctime is change of file status and -mtime is last modification time. I think I understand what modification means (changing the contents of the file) but

Re: Find Command Syntax

2004-09-22 Thread Drew Tomlinson
On 9/22/2004 11:23 AM Matthew Seaman wrote: On Wed, Sep 22, 2004 at 10:47:38AM -0700, Drew Tomlinson wrote: OK, I'm trying to understand the difference. According to the manual -ctime is change of file status and -mtime is last modification time. I think I understand what modification means