From owner-freebsd-questions@FreeBSD.ORG Thu Jul 10 08:27:45 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C549737B401 for ; Thu, 10 Jul 2003 08:27:45 -0700 (PDT) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5893543F85 for ; Thu, 10 Jul 2003 08:27:45 -0700 (PDT) (envelope-from lukec@gateway.e-and-s.com) Received: from a3hj189ry508c.bc.hsia.telus.net ([66.183.187.76] helo=[192.168.1.100]) by heron.mail.pas.earthlink.net with asmtp (Exim 3.33 #1) id 19adKg-0004LU-00; Thu, 10 Jul 2003 08:27:43 -0700 User-Agent: Microsoft-Entourage/10.1.0.2006 Date: Thu, 10 Jul 2003 08:27:49 -0700 From: Luke Cowell To: Nigel Taylor , Message-ID: In-Reply-To: <3F0D4C46.5040502@iinet.net.au> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-ELNK-Trace: b129f79fbe128c36e24c3129c0440d204d2b10475b571120d040cd4ff06ad6c2453e86cf2f6b767724ce30cde3b24aed350badd9bab72f9c350badd9bab72f9c Subject: Re: Try to delete files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2003 15:27:46 -0000 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 > 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" >