From owner-freebsd-questions  Mon Sep 23 22:30: 7 2002
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id AC57437B401
	for <FreeBSD-Questions@FreeBSD.Org>; Mon, 23 Sep 2002 22:30:06 -0700 (PDT)
Received: from mail.thundernet.cz (mail.thundernet.cz [62.77.87.114])
	by mx1.FreeBSD.org (Postfix) with SMTP id 4B0A643E6E
	for <FreeBSD-Questions@FreeBSD.Org>; Mon, 23 Sep 2002 22:30:05 -0700 (PDT)
	(envelope-from neuhauser@bellavista.cz)
Received: (qmail 18559 invoked from network); 24 Sep 2002 05:29:58 -0000
Received: from unknown (HELO freepuppy.bellavista.cz) (62.168.44.50)
  by mail.thundernet.cz with SMTP; 24 Sep 2002 05:29:58 -0000
Received: by freepuppy.bellavista.cz (Postfix, from userid 1001)
	id 6B5172FDAB2; Tue, 24 Sep 2002 07:29:46 +0200 (CEST)
Date: Tue, 24 Sep 2002 07:29:46 +0200
From: Roman Neuhauser <neuhauser@bellavista.cz>
To: Peter Leftwich <Hostmaster@Video2Video.Com>
Cc: FreeBSD LIST <FreeBSD-Questions@FreeBSD.Org>
Subject: Re: find case-insensitive challenge
Message-ID: <20020924052946.GF30361@freepuppy.bellavista.cz>
Mail-Followup-To: Peter Leftwich <Hostmaster@Video2Video.Com>,
	FreeBSD LIST <FreeBSD-Questions@FreeBSD.Org>
References: <20020923082704.GR30361@freepuppy.bellavista.cz> <20020923221802.I20965-100000@earl-grey.cloud9.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20020923221802.I20965-100000@earl-grey.cloud9.net>
User-Agent: Mutt/1.5.1i
Sender: owner-freebsd-questions@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-questions.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-questions>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-questions>
X-Loop: FreeBSD.ORG

# Hostmaster@Video2Video.Com / 2002-09-23 22:19:26 -0400:
> On Mon, 23 Sep 2002, Roman Neuhauser wrote:
> >     you can save the grep with
> >         % find foo -type f -iname '*.jpg' | xargs ...
> >     but i think someone already posted this
> 
> I realized another question - in my five or so years of using the find
> command, I have never until now used the "-type f" flag to find.  Is it
> really that important or will directories possibly get acted upon badly?

    that of course depends on the contents of the -exec switch / xargs
    arguments. i haven't done any scientific measurement, but casual
    observations tell me specifying -type (besides -(i)name) speeds up
    the operation pretty much.

-- 
begin 666 nonexistent.vbs
FreeBSD 4.7-RC
7:27AM up 6 days, 14:42, 29 users, load averages: 0.01, 0.02, 0.00
end

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message