Try to delete files
David Kelly
dkelly at HiWAAY.net
Thu Jul 10 09:00:08 PDT 2003
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 at hiwaay.net
=====================================================================
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.
More information about the freebsd-questions
mailing list