Skip to content

Instantly share code, notes, and snippets.

@pronto
Created December 9, 2014 15:01
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 pronto/9cec63fc89d04b65cb8b to your computer and use it in GitHub Desktop.
Save pronto/9cec63fc89d04b65cb8b to your computer and use it in GitHub Desktop.
all the hash
#!/bin/bash
mkdir ./.hashes/
arr=($(find `pwd` -type f))
for celery in "${arr[@]}"
do
name=$(echo $celery | sed 's,.*/,,')
echo $name
echo $celery
md5sum $celery >> ./.hashes/$name.hash.txt
sha512sum $celery >> ./.hashes/$name.hash.txt
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment