From owner-freebsd-questions Mon Feb 26 16:23:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 00EBD37B491 for ; Mon, 26 Feb 2001 16:23:53 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.11.1/8.11.1) id f1R0Njl02245; Mon, 26 Feb 2001 18:23:45 -0600 (CST) (envelope-from dan) Date: Mon, 26 Feb 2001 18:23:44 -0600 From: Dan Nelson To: John Telford Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Quick rm script ? Message-ID: <20010226182344.A1070@dan.emsphone.com> References: <000901c0a052$1b23d730$3623e540@johnny2k> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.14i In-Reply-To: <000901c0a052$1b23d730$3623e540@johnny2k>; from "John Telford" on Mon Feb 26 19:13:26 GMT 2001 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Feb 26), John Telford said: > what commands could I use to remove files older than nn days ? > And any links to scripts and samples would be appreciated :) > TIA. John. find . -mtime +10 -type f -delete will delete all files from the current directory on down older than 10 days. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message