Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2003 11:00:05 -0500
From:      David Kelly <dkelly@HiWAAY.net>
To:        FreeBSD-Questions@FreeBSD.org
Subject:   Re: Try to delete files
Message-ID:  <200307101100.05759.dkelly@HiWAAY.net>
In-Reply-To: <BB32D405.6D8%lukec@gateway.e-and-s.com>
References:  <BB32D405.6D8%lukec@gateway.e-and-s.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 10 July 2003 10:27 am, Luke Cowell wrote:
> For academic purposes, I'll provide this explanation.
>
> Use find; this command would delete any files modified more than one
> year ago.
>
> Find /usr/ports -mtime +365 -xargs rm -ri {} \;

That works but is not a very good idea. My distfiles were recently 
scoured with "portsclean -D" and this is the result:

% find /usr/ports/distfiles/ -type f -mtime +365  | wc -l
     373

In other words I have 373 current distfiles which are over 365 days old.

-- 
David Kelly N4HHE, dkelly@hiwaay.net
=====================================================================
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.



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