From owner-freebsd-questions@FreeBSD.ORG Wed Apr 25 23:37:21 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CFF0416A402 for ; Wed, 25 Apr 2007 23:37:21 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id A78A813C46A for ; Wed, 25 Apr 2007 23:37:21 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 4E23251947; Wed, 25 Apr 2007 19:37:20 -0400 (EDT) Date: Thu, 26 Apr 2007 00:37:16 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20070426003716.62ab4062@gumby.homeunix.com.> In-Reply-To: <20070425215326.GA25614@ayn.mi.celestial.com> References: <20070425072914.GA65634@thought.org> <462F0824.5000107@infracaninophile.co.uk> <20070425212318.GA5247@saltmine.radix.net> <20070425215326.GA25614@ayn.mi.celestial.com> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.11; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd@celestial.com Subject: Re: first of misc questions.... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2007 23:37:21 -0000 On Wed, 25 Apr 2007 14:53:26 -0700 Bill Campbell wrote: > On Wed, Apr 25, 2007, Thomas Dickey wrote: > >On Wed, Apr 25, 2007 at 10:31:45PM +0200, Irsla wrote: > >> On 4/25/07, Matthew Seaman wrote: > >> > > >> > find . -type f \( -mtime 6 -o -mtime 29 \) -print0 | xargs -0 > >> > vi > >> > > >> > >> what about the -exec option of find ? I always wonder why people > >> don't use it. > > > >it's simpler but not necessarily as efficient. > > How could it be as efficient as it executes the -exec for every thing > that find finds? Xargs groups the output (except under rare > circumstances where one might specify that it run the command for > each argument). This is one of those things that isn't actually true, but has been repeated so many times that people have come to believe it. The -exec option can be made to pass multiple arguments if it's used correctly.