From owner-freebsd-questions@FreeBSD.ORG Wed Sep 22 15:39:09 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E21816A4CE for ; Wed, 22 Sep 2004 15:39:09 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BDCC43D54 for ; Wed, 22 Sep 2004 15:39:08 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i8MFd4qA016953 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 22 Sep 2004 16:39:04 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i8MFd4JU016952; Wed, 22 Sep 2004 16:39:04 +0100 (BST) (envelope-from matthew) Date: Wed, 22 Sep 2004 16:39:04 +0100 From: Matthew Seaman To: Drew Tomlinson Message-ID: <20040922153904.GA16792@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Drew Tomlinson , FreeBSD Questions References: <4151998F.205@mykitchentable.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline In-Reply-To: <4151998F.205@mykitchentable.net> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Wed, 22 Sep 2004 16:39:04 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040904, clamav-milter version 0.75l on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: FreeBSD Questions Subject: Re: Find Command Syntax X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 15:39:09 -0000 --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--