This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: find . -regex '.*js' -type f -exec md5sum '{}' \\; really slow!
On Mon, Nov 24, 2008 at 11:09 AM, Bartolomeo Nicolotti wrote:
>
> Hi,
>
> but the command
>
> find . -type f | xargs md5sum
>
> has problems with blanks in the name of the files:
This isn't a general help list for UNIX tools; they work the same on
Cygwin as on UNIX. I recommend you search for tutorials online;
http://www.softpanorama.org/Tools/Find/find_mini_tutorial.shtml looks
like it might be helpful for find.
The solution to your problem is the -print0 option to find, coupled
with the -0 option to xargs.
find . -type f -print0 | xargs -0 md5sum
--
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/