Created
October 27, 2013 03:08
-
-
Save johnb30/7177554 to your computer and use it in GitHub Desktop.
Bash script for OS X to check md5 values of the downloaded zip files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for file in $1* | |
do | |
genhash=`md5 "$file" | tail -c 33` | |
if grep -q "$genhash" "$2"; then | |
echo Found hash for "$file" | |
else | |
echo Did not find hash for "$file" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment