Skip to content

Instantly share code, notes, and snippets.

@imesh
Last active August 6, 2016 09:34
Show Gist options
  • Select an option

  • Save imesh/11255597 to your computer and use it in GitHub Desktop.

Select an option

Save imesh/11255597 to your computer and use it in GitHub Desktop.
Generate MD5 and SHA1 of zip files
#!/bin/sh
md5=".md5"
sha1=".sha1"
for f0 in *.zip
do
echo $f0
f2=$f0$md5
md5sum $f0 > $f2
cat $f2
f3=$f0$sha1
sha1sum $f0 > $f3
cat $f3
gpg -ab --default-key 622AA831 $f0
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment