delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <459D3C3B.1070204@york.ac.uk> |
Date: | Thu, 04 Jan 2007 17:41:15 +0000 |
From: | Rex Godby <rwg3 AT york DOT ac DOT uk> |
User-Agent: | Thunderbird 1.5.0.9 (Windows/20061207) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Two short scripts for Cygwin-Windows interoperation |
References: | <loom DOT 20070104T172439-137 AT post DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 63 DOT 0701041220120 DOT 15041 AT access1 DOT cims DOT nyu DOT edu> |
In-Reply-To: | <Pine.GSO.4.63.0701041220120.15041@access1.cims.nyu.edu> |
X-York-MailScanner: | Found to be clean |
X-York-MailScanner-From: | rwg3 AT york DOT ac DOT uk |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Thanks for your comments. I'm sure you're right about the -path method being faster, but the resources are not significant for typical setups, and the grep method is immediately adaptable to more sophisticated processing of the list of filenames beyond simple pattern matching. Rex On 04/01/2007 17:26, Igor Peshansky wrote: > Also, it's almost always faster to run 'find ... -path "*$1*"' than it is > to run 'find ... | grep "$1"'. > HTH, > Igor -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |