From owner-freebsd-questions Mon Feb 26 21:57:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by hub.freebsd.org (Postfix) with ESMTP id C175437B420 for ; Mon, 26 Feb 2001 21:57:31 -0800 (PST) (envelope-from fscked@pacbell.net) Received: from pacbell.net ([63.203.74.120]) by mta6.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0G9E00IULITKU1@mta6.snfc21.pbi.net> for freebsd-questions@FreeBSD.ORG; Mon, 26 Feb 2001 21:48:56 -0800 (PST) Date: Mon, 26 Feb 2001 22:02:32 -0800 From: richard childers Subject: Re: Quick rm script ? To: John Telford Cc: freebsd-questions@FreeBSD.ORG Message-id: <3A9B42F8.DDFD781D@pacbell.net> Organization: The Free State of Dis MIME-version: 1.0 X-Mailer: Mozilla 4.73 [en] (WinNT; U) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en References: <000901c0a052$1b23d730$3623e540@johnny2k> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG find /path/to/dir -type f -mtime +2 -exec rm -f {} \; ... will delete all files 2 or more days old starting from /path/to/dir. See find(1) for information and more examples. -- richard John Telford wrote: > what commands could I use to remove files older than nn days ? > And any links to scripts and samples would be appreciated :) > TIA. John. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Richard A. Childers Senor UNIX Administrator fscked@pacbell.net (email) 203.556.8471 (voice/msgs) # Providing administrative expertise (not 'damage control') since 1986. # PGP fingerprint: 7EFF 164A E878 7B04 8E9F 32B6 72C2 D8A2 582C 4AFA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message