Skip to content

Instantly share code, notes, and snippets.

@jimray
Created February 4, 2015 21:59
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 jimray/16d60646a054de0a64d3 to your computer and use it in GitHub Desktop.
Save jimray/16d60646a054de0a64d3 to your computer and use it in GitHub Desktop.
Base64 encode a file and copy the resulting output to the clipboard
# 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