Skip to content

Instantly share code, notes, and snippets.

@tjfontaine
Created August 16, 2013 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjfontaine/6252812 to your computer and use it in GitHub Desktop.
Save tjfontaine/6252812 to your computer and use it in GitHub Desktop.
find . \( -path ./docs -o -iname SHASUM\* \) -prune -o -type f -exec shasum '{}' \+ >> SHASUMS.txt.tmp
find . \( -path ./docs -o -iname SHASUM\* \) -prune -o -type f -exec shasum -a 256 '{}' \+ >> SHASUMS256.txt.tmp
sort -k2 -o SHASUMS.txt SHASUMS.txt.tmp
sort -k2 -o SHASUMS256.txt SHASUMS256.txt.tmp
rm *.tmp
sed -i -e s#\./## SHASUMS*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment