From owner-freebsd-questions@FreeBSD.ORG Thu Jul 10 09:00:08 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 0D9E537B401 for ; Thu, 10 Jul 2003 09:00:08 -0700 (PDT) Received: from grumpy.dyndns.org (user-24-214-34-52.knology.net [24.214.34.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F99D43FBF for ; Thu, 10 Jul 2003 09:00:07 -0700 (PDT) (envelope-from dkelly@grumpy.dyndns.org) Received: from grumpy.dyndns.org (localhost [127.0.0.1]) by grumpy.dyndns.org (8.12.9/8.12.9) with ESMTP id h6AG06Dh042898 for ; Thu, 10 Jul 2003 11:00:06 -0500 (CDT) (envelope-from dkelly@grumpy.dyndns.org) Received: from localhost (localhost [[UNIX: localhost]]) by grumpy.dyndns.org (8.12.9/8.12.9/Submit) id h6AG05gh042897 for FreeBSD-Questions@FreeBSD.org; Thu, 10 Jul 2003 11:00:05 -0500 (CDT) From: David Kelly To: FreeBSD-Questions@FreeBSD.org Date: Thu, 10 Jul 2003 11:00:05 -0500 User-Agent: KMail/1.5.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307101100.05759.dkelly@HiWAAY.net> 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 16:00:08 -0000 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@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system.