Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Feb 2001 18:23:44 -0600
From:      Dan Nelson <dnelson@emsphone.com>
To:        John Telford <j.telford@sympatico.ca>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Quick rm script ?
Message-ID:  <20010226182344.A1070@dan.emsphone.com>
In-Reply-To: <000901c0a052$1b23d730$3623e540@johnny2k>; from "John Telford" on Mon Feb 26 19:13:26 GMT 2001
References:  <000901c0a052$1b23d730$3623e540@johnny2k>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010226182344.A1070>