windows annoyances: md5sum pollution

I use BitTorrent. As is common in the taper community, these recordings come with an additional MD5 checksum file. This means you can check that the contents are good without having the master copy around.

But do you ever get md5sum files that give you this output from md5sum -c?

: No such file or directory
: FAILED open or read
: No such file or directory
: FAILED open or read

Yes, it’s a windows annoyance: their ancient CRLF text files are polluting our utility. You can fix it with tr -d '\015' < md5sum.txt | md5sum -c -

I don’t mind that Windows users have finally got on the clue train about data verification. It’s just that, if you’re going to use our tools, why can’t you use them in the proper Unix way?

Leave a Reply

Your email address will not be published. Required fields are marked *