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>
next in thread | previous in thread | raw e-mail | index | archive | help
--ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=20 > Spamassassin's sa-learn and then delete the mails older than 1 day in=20 > that spam folder. Here's my current directory listing: > I'm trying to use the find command to do the deleting but am having=20 > trouble with the syntax. For testing, I'm using this command: >=20 > blacklamb> find /path/to/Maildir/.Spam/cur \! -newerct 1d -print > blacklamb> >=20 > It finds nothing. I read in the manual that time specifications don't=20 > 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 --=20 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 --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBUZyYiD657aJF7eIRAvEjAJ42XX7j0Z5j8ygifgZzCmfLr6y07gCgrIkN wfKi1uydfEPCaIGWNLkFR9w= =ko/A -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040922153904.GA16792>