From owner-freebsd-stable Sun Nov 19 5: 8:29 2000 Delivered-To: freebsd-stable@freebsd.org Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by hub.freebsd.org (Postfix) with ESMTP id EC95737B479 for ; Sun, 19 Nov 2000 05:08:26 -0800 (PST) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.8.7/8.8.8) id FAA09948; Sun, 19 Nov 2000 05:07:53 -0800 Received: from passer.osg.gov.bc.ca(142.32.110.29) via SMTP by point.osg.gov.bc.ca, id smtpda09946; Sun Nov 19 05:07:43 2000 Received: (from uucp@localhost) by passer.osg.gov.bc.ca (8.11.1/8.9.1) id eAJD7Y203113; Sun, 19 Nov 2000 05:07:34 -0800 (PST) Received: from cwsys9.cwsent.com(10.2.2.1), claiming to be "cwsys.cwsent.com" via SMTP by passer9.cwsent.com, id smtpdBD3111; Sun Nov 19 05:06:43 2000 Received: (from uucp@localhost) by cwsys.cwsent.com (8.11.1/8.9.1) id eAJD6ha61960; Sun, 19 Nov 2000 05:06:43 -0800 (PST) Message-Id: <200011191306.eAJD6ha61960@cwsys.cwsent.com> Received: from localhost.cwsent.com(127.0.0.1), claiming to be "cwsys" via SMTP by localhost.cwsent.com, id smtpdj61956; Sun Nov 19 05:06:37 2000 X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 Reply-To: Cy Schubert - ITSD Open Systems Group From: Cy Schubert - ITSD Open Systems Group X-OS: FreeBSD 4.1.1-RELEASE X-Sender: cy To: James Cc: stable@FreeBSD.ORG Subject: Re: cd /usr/ports; make clean In-reply-to: Your message of "Sat, 18 Nov 2000 23:16:33 PST." <20001118231633.A85206@evilcode.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 19 Nov 2000 05:06:37 -0800 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20001118231633.A85206@evilcode.com>, James writes: > On Sun, Nov 19, 2000 at 03:11:38PM +0800, Jing-Tang Keith Jang wrote: > > On 11/18/00, James wrote: > > > Or for a much faster solution: > > > find /usr/ports -type d -name work -prune -print -exec rm -r {} \; > > > > why not just "cd /usr/ports; rm -fr */*/work"? > > If I understand it correctly, there is a limit to the maximum number > of command line arguments that a program can have. That all depends on the number of work directories you have. If it's a few than letting the shell search for work directories is not a problem. If it's many then a find command piped to xargs is the most efficient answer. I think that people might have an idea of how much needs to be cleaned up, then choose the tool that works best. Regards, Phone: (250)387-8437 Cy Schubert Fax: (250)387-5766 Team Leader, Sun/DEC Team Internet: Cy.Schubert@osg.gov.bc.ca Open Systems Group, ITSD, ISTA Province of BC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message