Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!security!genrad!grkermit!masscomp!clyde!floyd!harpo!seismo!hao!hplabs!hpda!fortune!dsd!avsdS!avsdT:roberts From: avsdT:roberts@avsdS.UUCP Newsgroups: net.jokes.d Subject: Re: Rot N program source - (nf) Message-ID: <648@avsdT.UUCP> Date: Tue, 17-Jan-84 15:23:31 EST Article-I.D.: avsdT.648 Posted: Tue Jan 17 15:23:31 1984 Date-Received: Sat, 21-Jan-84 02:29:04 EST References: uiucdcs.4910 Lines: 46 # Here is another shell script that also works at rotating # either for encryption or decryption. # Save this file, name it whatever you want, like rot, # or something, then delete the mailing address at the top. # To work it when reading a joke that is rotated, type after the prompt: # 27 lines [ynq] s | rot 13 | more # This will call specifically a rotation of "13". You can rotate # to any translation. If you wish to submit a rotated file, then # after you have written it, and while still in "vi" do the following: # :1,$!rot 13 # This will rotate your file before your very eyes. Then write and # quite the editing session and send it off to where ever. # ------------------------------------------------------------ case $1 in 1) tr a-zA-Z b-zaB-ZA;; 2) tr a-zA-Z c-za-bC-ZA-B;; 3) tr a-zA-Z d-za-cD-ZA-C;; 4) tr a-zA-Z e-za-dE-ZA-D;; 5) tr a-zA-Z f-za-eF-ZA-E;; 6) tr a-zA-Z g-za-fG-ZA-F;; 7) tr a-zA-Z h-za-gH-ZA-G;; 8) tr a-zA-Z i-za-hI-ZA-H;; 9) tr a-zA-Z j-za-iJ-ZA-I;; 10) tr a-zA-Z k-za-jK-ZA-J;; 11) tr a-zA-Z l-za-kL-ZA-K;; 12) tr a-zA-Z m-za-lM-ZA-L;; 13) tr a-zA-Z n-za-mN-ZA-M;; 14) tr a-zA-Z o-za-nO-ZA-N;; 15) tr a-zA-Z p-za-oP-ZA-O;; 16) tr a-zA-Z q-za-pQ-ZA-P;; 17) tr a-zA-Z r-za-qR-ZA-Q;; 18) tr a-zA-Z s-za-rS-ZA-R;; 19) tr a-zA-Z t-za-sT-ZA-S;; 20) tr a-zA-Z u-za-tU-ZA-T;; 21) tr a-zA-Z v-za-uV-ZA-U;; 22) tr a-zA-Z w-za-vW-ZA-V;; 23) tr a-zA-Z x-za-wX-ZA-W;; 24) tr a-zA-Z y-za-xY-ZA-X;; 25) tr a-zA-Z za-yZA-Y;; esac