Try to delete files

Luke Cowell lukec at gateway.e-and-s.com
Thu Jul 10 08:27:46 PDT 2003


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



More information about the freebsd-questions mailing list