From owner-freebsd-questions Fri Sep 27 5:36:52 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 483B937B401 for ; Fri, 27 Sep 2002 05:36:51 -0700 (PDT) Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D34D43E3B for ; Fri, 27 Sep 2002 05:36:50 -0700 (PDT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [IPv6:::1]) by lurza.secnetix.de (8.12.5/8.12.5) with ESMTP id g8RCammC036123 for ; Fri, 27 Sep 2002 14:36:49 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.12.5/8.12.5/Submit) id g8RCam6m036122; Fri, 27 Sep 2002 14:36:48 +0200 (CEST) Date: Fri, 27 Sep 2002 14:36:48 +0200 (CEST) Message-Id: <200209271236.g8RCam6m036122@lurza.secnetix.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG Reply-To: freebsd-questions@FreeBSD.ORG Subject: Re: find case-insensitive challenge In-Reply-To: <20020923082704.GR30361@freepuppy.bellavista.cz> X-Newsgroups: list.freebsd-questions User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.6-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Roman Neuhauser 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