![]() |
|
||||||||||||||||||||||||||||
|
Rot 13I sometimes get email with rot13 (a.k.a Caesar rotated) text. Here's a really simple script that will encode and decode rot13 text. It simply filters standard input through a rot13 translation and writes the results to standard out. With the-f option it reads
from a file, and writes to standard out.Here is the code and a few examples:
% rot13 -f /etc/motd
Fha Zvpebflfgrzf Vap. FhaBF 5.6 Trarevp Nhthfg 1997
% echo 'Zl ubirepensg vf shyy bs rryf!' | rot13
My hovercraft is full of eels!
|