Date: Mon, 26 Feb 2001 22:02:32 -0800 From: richard childers <fscked@pacbell.net> To: John Telford <j.telford@sympatico.ca> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Quick rm script ? Message-ID: <3A9B42F8.DDFD781D@pacbell.net> References: <000901c0a052$1b23d730$3623e540@johnny2k>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A9B42F8.DDFD781D>