Date: Wed, 22 Sep 2004 16:39:04 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Drew Tomlinson <drew@mykitchentable.net> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Find Command Syntax Message-ID: <20040922153904.GA16792@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <4151998F.205@mykitchentable.net> References: <4151998F.205@mykitchentable.net>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
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
> blacklamb>
>
> 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:
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.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)
iD8DBQFBUZyYiD657aJF7eIRAvEjAJ42XX7j0Z5j8ygifgZzCmfLr6y07gCgrIkN
wfKi1uydfEPCaIGWNLkFR9w=
=ko/A
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040922153904.GA16792>
