bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#10043: md5sum improvment suggestion


From: Pádraig Brady
Subject: bug#10043: md5sum improvment suggestion
Date: Mon, 14 Nov 2011 10:27:02 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0

tags 10043 notabug

On 11/14/2011 08:56 AM, Castet JR wrote:
> md5sum improvment suggestion
> 
> Let assume this:
> 
>   find /lib -type f -name '*dll' |head -n5 >a0.a
> 
>   cat a0.a
> 
> /lib/aspell-0.60/context-filter.dll
> /lib/aspell-0.60/email-filter.dll
> /lib/aspell-0.60/nroff-filter.dll
> /lib/aspell-0.60/sgml-filter.dll
> /lib/aspell-0.60/tex-filter.dll
> 
> 
> md5sum checks file integrity based on the md5 crc, of an single file.
>   md5sum /lib/aspell-0.60/tex-filter.dll
>   0

That's not what happens with coreutils md5sum.
Can you give the output of md5sum --version.
I'm closing the bug for the moment.

> md5sum checks file integrity based on the md5 crc, of an list of files .
>   md5sum -c a0.md5
>   0
> 
> 
> 
> md5sum apparently does not make an a0.md5 signature file from a list of files:
>   find /lib -type f -name '*dll' |head -n5 |while read f; do md5sum $f; done 
> >>a0.md
> 
>   -nasty-  :-(

BTW the above would start an md5sum process for each file,
as well as using shell loops which are slow.
The preferred idiom for this is:

find /lib -type f -name '*dll' | xargs md5sum >a0.md5

cheers,
Pádraig.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]