bug#10355: Add an option to {md5,sha*} to ignore directories (original) (raw)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
From: | Bob Proulx |
---|---|
Subject: | bug#10355: Add an option to {md5,sha*} to ignore directories |
Date: | Fri, 23 Dec 2011 10:17:22 -0700 |
User-agent: | Mutt/1.5.21 (2010-09-15) |
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 <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mrow><mi>A</mi><mi>L</mi><mi>L</mi><mi>F</mi><mi>I</mi><mi>L</mi><mi>E</mi><mi>S</mi></mrow><mi mathvariant="normal">‘</mi><mo separator="true">;</mo><mi>d</mi><mi>o</mi><mi>i</mi><mi>f</mi><mo stretchy="false">[</mo><mo>−</mo><mi>f</mi><mi mathvariant="normal">/</mi></mrow><annotation encoding="application/x-tex">{ALLFILES}
; do if [ -f /ALLFILES‘;doif[−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
- bug#10355: Add an option to {md5,sha*} to ignore directories, Gilles Espinasse, 2011/12/23
- bug#10355: Add an option to {md5,sha*} to ignore directories, Erik Auerswald, 2011/12/23
* bug#10355: Add an option to {md5,sha*} to ignore directories,Bob Proulx <=
* bug#10355: Add an option to {md5,sha*} to ignore directories, Gilles Espinasse, 2011/12/23
* bug#10355: Add an option to {md5,sha*} to ignore directories, Alan Curry, 2011/12/23
* bug#10355: Add an option to {md5,sha*} to ignore directories, Bob Proulx, 2011/12/23
* bug#10355: Add an option to {md5,sha*} to ignore directories, Paul Eggert, 2011/12/24 - bug#10355: Add an option to {md5,sha*} to ignore directories, Pádraig Brady, 2011/12/23
- bug#10355: Add an option to {md5,sha*} to ignore directories, Erik Auerswald, 2011/12/23
- Prev by Date:bug#10355: Add an option to {md5,sha*} to ignore directories
- Next by Date:bug#10355: Add an option to {md5,sha*} to ignore directories
- Previous by thread:bug#10355: Add an option to {md5,sha*} to ignore directories
- Next by thread:bug#10355: Add an option to {md5,sha*} to ignore directories
- Index(es):