find . -regex '.*js' -type f -exec md5sum '{}' \\; really slow!
Spiro Trikaliotis
an-cygwin@spiro.trikaliotis.net
Mon Nov 24 22:32:00 GMT 2008
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/
More information about the Cygwin
mailing list