Categories
Coding

Bash One-Liner To Generate MD5s for Artifacts

I’m putting this here so I don’t forget it…a quick one-liner to generate hashes for all artifacts created by a Maven build:


$ for distfile in $(ls *.{jar,zip,gz,bz2}); do md5sum $distfile > $distfile.md5; done