Not sure exactly how you want to use this, but here's a basic example to get you started:
echo 'fooman@example.com' | 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 'fooman@example.com' | rot13
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…