tlhIngan-Hol Archive: Mon Mar 11 11:19:54 1996
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: Using Rot-13
Joel Peter Anderson <[email protected]> writes:
\
\ If you don't have rot-13, but have Unix (or at least the "tr" command):
\
\ Make a command consisting of:
\ tr "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "NOPQRSTUVWXYZABCDEFGHIJKLM" |\
\ tr "abcdefghijklmnopqrstuvwxyz" "nopqrstuvwxyzabcdefghijklm"
Egad, man, no need to be so wordy or to use two processes! The
following single command will do the trick nicely:
tr '[A-Za-z]' '[N-ZA-Mn-za-m]'
--
Mark J. Reed
Email: [email protected] - Voice: +1 404 315 6296 x158 - Fax: +1 404 315 6407
Hewlett-Packard Co. / 2957 Clairmont Rd Suite 220 / Atlanta GA 30329-1647
E-Mail Privacy by SecureMail. Visit URL:http://www.secureware.com/ for details.