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> In-Reply-To: <20020923221802.I20965-100000@earl-grey.cloud9.net> References: <20020923082704.GR30361@freepuppy.bellavista.cz> <20020923221802.I20965-100000@earl-grey.cloud9.net>
index | next in thread | previous in thread | raw e-mail
# 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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020924052946.GF30361>
