Skip to content

Instantly share code, notes, and snippets.

@JaekelEDV
Created September 17, 2020 20:32
Show Gist options
  • Save JaekelEDV/403d121e2a71156238960660c8ffc78b to your computer and use it in GitHub Desktop.
Save JaekelEDV/403d121e2a71156238960660c8ffc78b to your computer and use it in GitHub Desktop.
ROT13
#https://en.wikipedia.org/wiki/ROT13
echo "Hail, Caesar!" | tr 'a-zA-Z' 'n-za-mN-ZA-M'
#Unvy, Pnrfne!
echo "Unvy, Pnrfne!" | tr 'a-zA-Z' 'n-za-mN-ZA-M'
#Hail, Caesar!
#To better understand this:
#tr accepts
# set of characters to convert from
# corresponding set of characters to convert to
echo "abc" | tr 'a-zA-Z' 'n-za-m N-ZA-M'
#nop
echo "mno" | tr 'a-zA-Z' 'n-za-m N-ZA-M'
#zab
echo "lowercase letters" | tr 'a-z' 'A-Z'
#LOWERCASE LETTERS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment