From owner-freebsd-arch Mon Jun 24 14:40:31 2002 Delivered-To: freebsd-arch@freebsd.org Received: from softweyr.com (softweyr.com [65.88.244.127]) by hub.freebsd.org (Postfix) with ESMTP id E1BAB37B400; Mon, 24 Jun 2002 14:40:25 -0700 (PDT) Received: from nextgig-7.customer.nethere.net ([209.132.102.167] helo=softweyr.com) by softweyr.com with esmtp (Exim 3.35 #1) id 17MbYz-000P9u-00; Mon, 24 Jun 2002 15:39:58 -0600 Message-ID: <3D1764C3.698D85EF@softweyr.com> Date: Mon, 24 Jun 2002 11:28:19 -0700 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: Terry Lambert Cc: Mikhail Teterin , Dag-Erling Smorgrav , Juli Mallett , arch@FreeBSD.ORG Subject: Re: feature request for xargs References: <200206200706.g5K76M514469@freefall.freebsd.org> <200206211033.03948.mi+mx@aldan.algebra.com> <200206211110.45597.mi+mx@aldan.algebra.com> <3D13A6BB.E4FB6085@mindspring.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert wrote: > > Mikhail Teterin wrote: > > On Friday 21 June 2002 11:09 am, Dag-Erling Smorgrav wrote: > > = Mikhail Teterin writes: > > = > All operations, involving many light tasks can benefit, i.e. > > = > > > = > find /some/dir \! -type d -print0 | xargs -0 -j0 rm -f > > = > > = find /some/dir \! -type d -delete > > > > Wouldn't this be slower, since find will be waiting for the delete > > to complete (yes, I know about the racing)? > > Give up. 8-). > > It's a bad example. There are good examples. find /usr/src -type f | xargs -j N indent --freebsd-knf Where "N" is roughly ncpus * 2. ;^) -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message