Se csv.gz.md5
foi gerado usando md5sum csv.gz > csv.gz.md5
, você pode verificar usando md5sum -c cvs.gz.md5
.
$ echo Hello World > something.abc
$ md5sum something.abc > something.abc.md5
$ md5sum -c something.abc.md5 && echo YAY || echo NAY
something.abc: OK
YAY
$ echo Garbage >> something.abc
$ md5sum -c something.abc.md5 && echo YAY || echo NAY
something.abc: FAILED
md5sum: WARNING: 1 computed checksum did NOT match
NAY