Categories
Looking glass
Navigate/Search

quick and dirty checksum tool

Need a quick, easy way to get checksums of files in a folder? A few months back I wrote this tiny bash script for work. It just occurred to me that it could be useful for non-work things as well.

This script uses md5, but you could easily change it to sha-1 or whatever flavors openssl supports.

(PS This script doesn’t support recursive directories. I didn’t need to worry about folders inside folders so I never bothered. If you want to fix this, please do — and share!)

sumchecker

Run the script by specifying the folder you want checked. It will generate a text file called md5sums.txt.

Leave a Reply