Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1a 12/4/83; site rlgvax.UUCP Path: utzoo!linus!philabs!seismo!rlgvax!guy From: guy@rlgvax.UUCP (Guy Harris) Newsgroups: net.wanted Subject: Re: Info on ROT Wanted - (nf) Message-ID: <1545@rlgvax.UUCP> Date: Fri, 13-Jan-84 12:49:52 EST Article-I.D.: rlgvax.1545 Posted: Fri Jan 13 12:49:52 1984 Date-Received: Sat, 14-Jan-84 04:11:22 EST References: <2272@fortune.UUCP> Organization: CCI Office Systems Group, Reston, VA Lines: 30 Now put your cursor on the line (in 'vi') and type "!!tr a-zAZ a-zaB-XA" (copied from another newsgroup, where it was noted non-Berkeley 'tr' needs [a-z][A-Z]) and the line will magically disappear and come back as... 1) If you don't have an editor which can take text, run it through a filter, and stick the output of the filter back into the file, just edit the file normally and run it through the filter; if you want to rotate only part of it, do some cut and paste work on the original and the filtered output. 2) I suspect "non-Berkeley 'tr'" should translate as "USG UNIX 'tr'", i.e. System III and System V 'tr', among others. The original V7 'tr' - and possibly the original V6 'tr' - may have ran as the Berkeley one does. (There *are* news sites out there on PDP-11s running V7!) That is a "rot 1" (or maybe -1). I leave it to you to figure out the letters for rot 13 (you want to decode it with rot -13). ... (And I may have + and - all wrong.) Since rotations are modulo 26, rot 13 and rot -13 are the same, which is why 13 is the proper rotation for jokes (so nobody has to figure out the direction of the rotation and nobody has to have two rotators). The proper translation for rot 13 is: tr "[a-zA-Z]" "[n-za-mN-ZA-M]" # for USG systems tr "a-zA-Z" "n-za-mN-ZA-M" # for non-USG systems Guy Harris {seismo,ihnp4,allegra}!rlgvax!guy