Henk P. Penning wrote on Fri, Nov 30, 2012 at 10:08:33 +0100: > The reason given "I ended up writing a Perl script" doesn't > make sense ; .md5 files come in many forms but the algorithm > to verify is the same for all of them (there are no 'variations.') : > > verify (checksum md5, .md5-file fff) : > -- tmp = lowercase cat fff > -- md5 = lowercase cat md5 > -- squeeze non-hex ([^a-f0-9]) out of tmp (and md5)
md5(1) on FreeBSD produces the literal text "MD5" as part of its output. md5sum(1) on Linux prints the filename as part of its output. The filename usually contains a hex digit (such as the "a" in "tar" or "d" in "hadoop"). Therefore just stripping non-hex-digits won't work with the standard md5 computation tools on those two platforms. > -- match md5 ~ tmp > > HPP > > ------------------------------------------------------------ _ > Henk P. Penning, ICT-beta R Uithof WISK-412 _/ \_ > Faculty of Science, Utrecht University T +31 30 253 4106 / \_/ \ > Budapestlaan 6, 3584CD Utrecht, NL F +31 30 253 4553 \_/ \_/ > http://www.staff.science.uu.nl/~penni101/ M penn...@uu.nl \_/ --------------------------------------------------------------------- To unsubscribe, e-mail: general-unsubscr...@incubator.apache.org For additional commands, e-mail: general-h...@incubator.apache.org