From owner-freebsd-questions@FreeBSD.ORG Wed Apr 25 21:53:01 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 3326B16A409 for ; Wed, 25 Apr 2007 21:53:01 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from ayn.mi.celestial.com (hayek.celestial.com [192.136.111.12]) by mx1.freebsd.org (Postfix) with ESMTP id 112F213C458 for ; Wed, 25 Apr 2007 21:53:00 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from localhost (localhost [127.0.0.1]) by ayn.mi.celestial.com (Postfix) with ESMTP id B015B68621E6B; Wed, 25 Apr 2007 14:53:26 -0700 (PDT) X-Virus-Scanned: amavisd-new at mi.celestial.com Received: from ayn.mi.celestial.com ([127.0.0.1]) by localhost (ayn.mi.celestial.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gTS2Kewdc1Ma; Wed, 25 Apr 2007 14:53:26 -0700 (PDT) Received: by ayn.mi.celestial.com (Postfix, from userid 203) id 8C111686003E5; Wed, 25 Apr 2007 14:53:26 -0700 (PDT) Date: Wed, 25 Apr 2007 14:53:26 -0700 From: Bill Campbell To: freebsd-questions@freebsd.org Message-ID: <20070425215326.GA25614@ayn.mi.celestial.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <20070425072914.GA65634@thought.org> <462F0824.5000107@infracaninophile.co.uk> <20070425212318.GA5247@saltmine.radix.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070425212318.GA5247@saltmine.radix.net> User-Agent: Mutt/1.5.11 OpenPKG/2.5 Subject: Re: first of misc questions.... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2007 21:53:01 -0000 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). Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software, LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 Suppose you were an idiot. And suppose you were a member of Congress. But I repeat myself. -- Mark Twain