X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: Date: Mon, 24 Nov 2008 12:42:29 -0500 From: "Mark J. Reed" 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?=" In-Reply-To: <1227542941.7201.55.camel@LxPC35> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1227540449 DOT 7201 DOT 45 DOT camel AT LxPC35> <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 Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/