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 <[EMAIL PROTECTED]>
> Date: Thu, 10 Jul 2003 19:21:42 +0800
> To: [EMAIL PROTECTED]
> 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
> 
> _______________________________________________
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to