# # Library of functions # file_hash() { sha256sum $1 | awk '{ print $1 }' } short_hash() { awk "BEGIN { print substr(\"$1\", 1, 7) }" }