Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jun 2002 11:28:19 -0700
From:      Wes Peters <wes@softweyr.com>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        Mikhail Teterin <mi+mx@aldan.algebra.com>, Dag-Erling Smorgrav <des@ofug.org>, Juli Mallett <jmallett@FreeBSD.ORG>, arch@FreeBSD.ORG
Subject:   Re: feature request for xargs
Message-ID:  <3D1764C3.698D85EF@softweyr.com>
References:  <200206200706.g5K76M514469@freefall.freebsd.org> <200206211033.03948.mi%2Bmx@aldan.algebra.com> <xzpbsa44qjv.fsf@flood.ping.uio.no> <200206211110.45597.mi%2Bmx@aldan.algebra.com> <3D13A6BB.E4FB6085@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert wrote:
> 
> Mikhail Teterin wrote:
> > On Friday 21 June 2002 11:09 am, Dag-Erling Smorgrav wrote:
> > = Mikhail Teterin <mi+mx@aldan.algebra.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D1764C3.698D85EF>