war story: parallel(1) command

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Wed Jul 31 18:01:40 UTC 2013


On Wed, Jul 31, 2013 at 07:20:11PM +0400, Zbigniew Koziol wrote:
> After reading this interesting discussion, I guess I would use the
> following algorithm:
> 
> Create a table with filename, its size, and MD5. Just that only.
> 
> If MD5 is the same, when checking, then check also a stronger hash
> on file, its size and file name.
> 
> I am right? Or perhaps I missed something?

If the size of two files don't match, then they are different, and it
doesn't matter if the hash matches or not, they are still different.

Only if the size matches and the hash matches is it possible that the
files are the same.

-- 
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list