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 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: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: List-Subscribe: List-Archive: List-Post: List-Help: , 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/