Verifiying checksums inside a file usually works like this using Linux and md5sum.
md5sum -c file.md5
However, using it like this on a Windows file reveals errors, that took me a long while to figure out. The first error was easy: Windows uses backslash instead of slash and different line endings. This can be fixed!
sed 's/\r$//' file.md5 | sed 's_\\_/_g' | md5sum -c
The first sed takes care of the line endings and the second one of the backslashes.
And while this does solve the major issue, it always ignores the first line of the file, saying unhelpfully at the very end:
md5sum: WARNING: 1 line is improperly formatted
Switching lines around doesn't change this. The first line of the file is always ignored.
hexdump -C foo.md5
and check.