delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <f60fe000811240942i337f339fm7ae0392f45a13f77@mail.gmail.com> |
Date: | Mon, 24 Nov 2008 12:42:29 -0500 |
From: | "Mark J. Reed" <markjreed AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: find . -regex '.*js' -type f -exec md5sum '{}' \\; really slow! |
Cc: | "=?UTF-8?Q?J=C3=B6rg_Schaible?=" <Joerg DOT Schaible AT scalaris DOT com> |
In-Reply-To: | <1227542941.7201.55.camel@LxPC35> |
MIME-Version: | 1.0 |
References: | <1227540449 DOT 7201 DOT 45 DOT camel AT LxPC35> <F0D7281DAB048B438E8F5EC4ECEFBDDC0337DE68 AT esmail DOT elsag DOT de> <1227542582 DOT 7201 DOT 51 DOT camel AT LxPC35> <1227542941 DOT 7201 DOT 55 DOT camel AT LxPC35> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |