Issue
I have read many tutorials on the internet about the usage of the 'tr' command. However, I am not able to understand how to encrypt an email address with a shell script shift the characters using rot13. Can any one give a link or an example?
Solution
Not sure exactly how you want to use this, but here's a basic example to get you started:
echo '[email protected]' | tr 'A-Za-z' 'N-ZA-Mn-za-m'
To make it easier, you can alias the tr
command in your .bashrc
file thusly:
alias rot13="tr 'A-Za-z' 'N-ZA-Mn-za-m'"
Now you can just call:
echo '[email protected]' | rot13
Answered By - samullen Answer Checked By - Timothy Miller (WPSolving Admin)