Script to remove files older than 30 days?
Peter
plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Sun Jun 11 23:11:52 UTC 2006
On Sun, 11 Jun 2006, Walter Dnes wrote:
> This sounds like something that's probably been done for other
> reasons. In Gentoo linux, source tarballs and patches are downloaded to
> /usr/portage/distfiles. And they accumulate there. I prefer not to
> blow them all away immediately. There are often 1-line patches later on
> that assume the presence of the original umpteen megabyte tarball. If
> it's not there, it has to be downloaded again, and the 1-line patch
> applied to it. I think that the best approach would be to delete files
> after 30 days or so.
>
> So is thare a generic "aging out" script anywhere?
find ... -atime -DD -exec rm {} \; (man find)
Peter
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list