Copy a file's sha256 checksum to clipboard
While working with the remote_file resource in Chef, I needed a quick way to copy a file's sha256
sum to my clipboard for use in attributes.
I came up with the following bash function for OSX:
sha256()
{
shasum -a 256 "$1" | awk '{ print $1 }' | pbcopy
}
Written by James Cuzella
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Osx
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#