GNU bug report logs - #10355
Add an option to {md5,sha*} to ignore directories

Previous Next

Package: coreutils;

Reported by: "Gilles Espinasse" <g.esp <at> free.fr>

Date: Fri, 23 Dec 2011 13:47:02 UTC

Severity: wishlist

Tags: moreinfo, notabug, wontfix

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #13 received at control <at> debbugs.gnu.org (full text, mbox):

From: Bob Proulx <bob <at> proulx.com>
To: Gilles Espinasse <g.esp <at> free.fr>, 10355 <at> debbugs.gnu.org
Subject: Re: bug#10355: Add an option to {md5,sha*} to ignore directories
Date: Fri, 23 Dec 2011 10:17:22 -0700
severity 10355 wishlist
tags 10355 + notabug wontfix moreinfo
thanks

Erik Auerswald wrote:
> Gilles Espinasse wrote:
> >I was using a way to check md5sum on a lot of file using
> >  for myfile in `cat ${ALLFILES}`; do if [ -f /${myfile} ]; then md5sum
> >/$myfile>>  $ALLFILES}.md5; fi; done
>...
> You could use "find $DIR -type f" to list regular files only.

Yes.  Exactly.  The capability you ask for is already present.

Please try this:

  find . -type f -exec md5sum {} +

Replace '.' above with a directory if you wish it to find files in a
different directory.

Bob




This bug report was last modified 13 years and 158 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.