From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 28 16:19:22 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D546116A4E0 for ; Mon, 28 Aug 2006 16:19:22 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 397C343D5D for ; Mon, 28 Aug 2006 16:19:19 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (klmrwv@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k7SGJ4qC065262; Mon, 28 Aug 2006 18:19:10 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k7SGIwWh065261; Mon, 28 Aug 2006 18:18:58 +0200 (CEST) (envelope-from olli) Date: Mon, 28 Aug 2006 18:18:58 +0200 (CEST) Message-Id: <200608281618.k7SGIwWh065261@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, rick-freebsd@kiwi-computer.com, mlobo@digiart.art.br In-Reply-To: <20060826225350.GA20172@megan.kiwi-computer.com> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Mon, 28 Aug 2006 18:19:11 +0200 (CEST) Cc: Subject: Re: A handy utility (at least for me) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, rick-freebsd@kiwi-computer.com, mlobo@digiart.art.br List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 16:19:22 -0000 Rick C. Petty wrote: > Mario Lobo wrote: > > My /usr/ports directory was occuping 24 gigs, of which 20 was just from the > > 'work' directories ! You should type "make clean" more often. ;-) > > Removing them one by one was a pain so I wrote this little utility to wipe > > them off. > > I find that the following command works just fine for me: > > find /usr/ports -type d -name work -prune -print -delete The following is probably the most efficient solution. It doesn't run into all subdirectories (and works with an arbitrary numebr of subdirectories). cd /usr/ports; echo */*/work | xargs rm -rf Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "I started using PostgreSQL around a month ago, and the feeling is similar to the switch from Linux to FreeBSD in '96 -- 'wow!'." -- Oddbjorn Steffensen