Last active
August 29, 2015 14:11
-
-
Save pronto/1b648f94fa40f8060af4 to your computer and use it in GitHub Desktop.
fun hash
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
fun_hash () { | |
#pass it the fullpath thing (celery) | |
for hashsum in "${hashCMDs[@]}" | |
do | |
echo -n "$hashsum " | |
$hashsum $1 | |
done | |
} |
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
fun_hash test2.png | |
md5sum c2235cb31e8a00a60d58bba375ab1728 test2.png | |
sha1sum 7e084ba3725d0d130963c3afe40e1842e8f89b4c test2.png | |
sha256sum aaec9854dee9fa8b57a4924a199372d72b6813abf597d239d44735035bdcf767 test2.png | |
sha512sum 22d05b93d76999cfdfe4becdca71c16ed1c3e9dd621cd28b6183b2f0a15c0b37b77f726b7a7bf9e307236148dfeeaa475644c94dbcc1eb92e9b8abc68e886121 test2.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment