Mac OS X doesn’t come with a sha1sum utility. Neither does fink. So what’s the quickest way to check a sha1sum on a Mac? Use openssl:
openssl sha1 filename
If you’d like to roll this sha1sum check into a simple bash script, create the following sha1sum script:
#!/bin/bash
/usr/bin/openssl sha1 $1
Then make the sha1sum script executable, and run it:
chmod 755 sha1sum
./sha1sum filename
Try the “shasum” command instead.
Comment by PCheese — December 17, 2009 @ 4:36 pm