Date: Thu, 10 Jul 2003 08:27:49 -0700 From: Luke Cowell <lukec@gateway.e-and-s.com> To: Nigel Taylor <nigelt@iinet.net.au>, <freebsd-questions@FreeBSD.ORG> Subject: Re: Try to delete files Message-ID: <BB32D405.6D8%lukec@gateway.e-and-s.com> In-Reply-To: <3F0D4C46.5040502@iinet.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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 {} \;
Luke
> From: Nigel Taylor <nigelt@iinet.net.au>
> Date: Thu, 10 Jul 2003 19:21:42 +0800
> To: freebsd-questions@FreeBSD.ORG
> Subject: Try to delete files
>
> Hi all,
>
> Hi, in my years of using freebsd i have collected alot of distfiles in
> the ports tree and i want to free up some space on my harddrive and i
> was wondering is there a command to delete files in the distfiles folder
> that are less than the year 2000?
>
> Or maybe there is a program that deletes all the older releases in the
> distfiles? if someone could help i would be gratefully
>
> Thanks
>
> Nigel Taylor
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BB32D405.6D8%lukec>
