Created
February 4, 2015 21:59
-
-
Save jimray/16d60646a054de0a64d3 to your computer and use it in GitHub Desktop.
Base64 encode a file and copy the resulting output to the clipboard
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
# Base64 encode a given file and copy the resulting output to the clipboard | |
base64copy() { openssl base64 -A -in $1 | pbcopy } | |
alias bcp=base64copy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment