Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Sep 2002 14:36:48 +0200 (CEST)
From:      Oliver Fromme <olli@secnetix.de>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: find case-insensitive challenge
Message-ID:  <200209271236.g8RCam6m036122@lurza.secnetix.de>
In-Reply-To: <20020923082704.GR30361@freepuppy.bellavista.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
Roman Neuhauser <neuhauser@bellavista.cz> wrote:
 > # Hostmaster@Video2Video.Com / 2002-09-22 21:53:58 -0400:
 > > On Thu, 19 Sep 2002, Oliver Fromme wrote:
 > > > This also enables you to use grep to filter the file names in
 > > > a more sophisticated way than find itself can do:
 > > > find foo -type f | grep -i '\.jpg$' | xargs -J % mv % bar
 > > 
 > > Amazing, I just wanted to post and say "Have I told you (all) lately, that
 > > I love you?"  This is the most incredible learning experience, and I must
 > > say that my command-line skills just grew approximately 14555% fold :)
 > 
 >     you can save the grep with
 >         % find foo -type f -iname '*.jpg' | xargs ...

The problem with that is that it's not portable.  I try
to avoid getting used to such non-portable features.
Typing an extra grep is faster than using -iname and
then finding out that it's not working on Solaris.  ;-)

Regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"All that we see or seem is just a dream within a dream" (E. A. Poe)

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209271236.g8RCam6m036122>