Skip to content

Instantly share code, notes, and snippets.

@johnb30
Created October 27, 2013 03:08
Show Gist options
  • Save johnb30/7177554 to your computer and use it in GitHub Desktop.
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.
#!/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