Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site eosp1.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!princeton!eosp1!lincoln From: lincoln@eosp1.UUCP (Dick Lincoln) Newsgroups: net.jokes.d Subject: Re: How to rotate jokes Message-ID: <901@eosp1.UUCP> Date: Thu, 31-May-84 10:15:47 EDT Article-I.D.: eosp1.901 Posted: Thu May 31 10:15:47 1984 Date-Received: Sat, 2-Jun-84 09:46:22 EDT References: <227@tellab1.UUCP> Organization: Exxon Office Systems, Princeton, NJ Lines: 33 > Could someone out there tell me the procedure for rotating jokes when > posting them? I noticed that other people occasionally mention that > they don't know how to post rotated jokes either, so it probably > would be a good idea to post the procedure in this newsgroup. Thanks > in advance. The simplest procedure I know, previously supplied by another on the net, is to "pass" the text to be rotated (13) through the following (tr) program "filter". tr a-zA-Z n-za-mN-ZA-M This reads from stdin and writes to stdout. I use this in conjunction with the (!) command in vi, so as to select the text to be rotated, and thus have the following alias in my home directory .cshrc file. alias rot13 tr a-zA-Z n-za-mN-ZA-M Thus to rotate text within vi I position the cursor to the first line in the block to be rotated and type !Grot13 where is the line number of the last line in the block to be rotated, and stands for the Carriage Return key. Use :set nu to get line numbers attached to text in your vi display. Of course, if your not running Berkely on a VAX,......