Created
January 3, 2017 22:33
-
-
Save bmchild/f1cad6927996c78f83056a7322b0f249 to your computer and use it in GitHub Desktop.
function to zip text + encrypt, 2 params (text to encrypt, filename w/o extension). Add to .bash_profile
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
#function to zip text + encrypt, 2 params (text to encrypt, filename w/o extension) | |
function zipe() { | |
echo "$1" > $2.txt && zip -e $2.zip $2.txt && rm $2.txt | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment