This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: find . -regex '.*js' -type f -exec md5sum '{}' \\; really slow!
- From: Spiro Trikaliotis <an-cygwin at spiro dot trikaliotis dot net>
- To: cygwin at cygwin dot com
- Date: Mon, 24 Nov 2008 17:00:22 +0100
- Subject: Re: find . -regex '.*js' -type f -exec md5sum '{}' \\; really slow!
- References: <1227540449.7201.45.camel@LxPC35>
Hello Bartolomeo,
* On Mon, Nov 24, 2008 at 04:27:29PM +0100 Bartolomeo Nicolotti wrote:
> /usr/bin/find . -type f -exec md5sum '{}' \\;
[...]
> Could some one help me to speed-up things on windows+cygwin?
Just a guess:
/usr/bin/find . -type f|xargs md5sum
(Background: I expect the execution of md5sum to take much time. Thus,
with the xargs approach, I make sure the md5sum is called less times,
with more than one parameter each time - which will *hopefully* decrease
the time)
HTH,
Spiro.
--
Spiro R. Trikaliotis http://opencbm.sf.net/
http://www.trikaliotis.net/ http://www.viceteam.org/
--
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/