This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Two short scripts for Cygwin-Windows interoperation


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]