emjay@dasys1.UUCP (Michael J. Lavery) (08/22/89)
A question about ROT13. I know what it is. I know how to use it to read in rn and vnews, but I have been unable to find out HOW to post a message or article and then convert it to ROT13 format. Can someone clue me in? -- Michael J. Lavery Big Electric Cat Public UNIX ..!cmcl2!hombre!dasys1!emjay
charlie@mica.stat.washington.edu (Charlie Geyer) (08/23/89)
In article <10521@dasys1.UUCP> emjay@dasys1.UUCP (Michael J. Lavery) writes: > A question about ROT13. I know what it is. I know how to use > it to read in rn and vnews, but I have been unable to find out HOW to > post a message or article and then convert it to ROT13 format. Can > someone clue me in? Since you seem to be on a UNIX system, the following answer should suffice. It is from the article "Answers to Frequently Asked Questions" which is regularly posted in news.announce.newusers and which all new users should read (not a flame, many new users don't know they should read once all of the postings in this group, it takes less than an hour). 6. How do I decrypt jokes in rec.humor? The standard cypher used in rec.humor is called "rot13." Each letter is replaced by the letter 13 farther along in the alphabet (cycling around at the end). Most systems have a built-in command to decrypt such articles; readnews has the "D" command, rn has the "X" or "^X" commands, notes has "%" or "R". If your system doesn't have a program to encrypt and decrypt these, you can quickly create a shell script using "tr": tr A-Za-z N-ZA-Mn-za-m On some versions of Unix, the "tr" command should be written as: tr "[a-m][n-z][A-M][N-Z]" "[n-z][a-m][N-Z][A-M]" The article doesn't say, but the same "tr" command does encryption and decryption. Try it. How to run this command inside an editor depends on the editor.
melnik@cbnewsi.ATT.COM (joann.melnik) (10/06/89)
How do I save (decrypted) an article encrypted in rot13?? I use rn, and when I save the article (even though the display is decrypted) it's in rot13 in the saved file? Any ideas? Joanne -- Joanne Melnik [aka AJ] | All the world's a stage.... Ahh, forget it. --------------------------|----------------------------------------------------- @> melnik@cbnewsi.ATT.COM | Disclaimer: AT&T owns me body and soul but my !> att!cbnewsi!melnik | opinions are my own [I think].
tale@pawl.rpi.edu (David C Lawrence) (10/06/89)
In <877@cbnewsi.ATT.COM> melnik@cbnewsi.ATT.COM (joann.melnik) writes:
Joanne> How do I save (decrypted) an article encrypted in rot13??
Joanne> I use rn, and when I save the article (even though the display is
Joanne> decrypted) it's in rot13 in the saved file?
This topic is loosely addressed in "Answers to Frequently Asked
Questions (Updated: 3 Sep 1989)", one of the regular postings to
news.announce.newusers. It has this to say:
6. How do I decrypt jokes in rec.humor?
[...] If your system doesn't have a program to encrypt and
decrypt these, you can quickly create a shell script using "tr":
tr A-Za-z N-ZA-Mn-za-m
On some versions of Unix, the "tr" command should be written as:
tr "[a-m][n-z][A-M][N-Z]" "[n-z][a-m][N-Z][A-M]"
Now, knowing what command can decrypt the message for you, you can use
the normal features of rn to facilitate this. For example, you could
type "| tr A-Za-z N-ZA-Mn-za-m > filename". You probably don't want
to have to remember and type that everytime you want to save a rot13
article though, so you could define a macro to do that.
Just to save a little effort (this is documented in the rn manual
page; refer to it for further information), a suitable macro for
.rnmac could be:
@x %(%m=[ap]?| tr A-Za-z N-ZA-Mn-za-m > %" Save unrotated in file: "\012)
which would, when "@x" is typed at the article or pager level, prompt
for the name of a file in which to save the unrot-13'ed article. The
filename provided, if not absolute, will be relative to the default
directory (the "-d" switch which can be seen with the "&" summary)
which is typically ~/News. There might be niftier ways to do this so
it behaves like "s" and "w" as far as arguments are concerned. Note
that this is untested because I don't use rn. It also saves the
headers rotated to something pretty incomprehensible.
Dave
--
(setq mail '("tale@pawl.rpi.edu" "tale@itsgw.rpi.edu" "tale@rpitsmts.bitnet"))
briang@bari.Sun.COM (Brian Gordon) (10/07/89)
In article <877@cbnewsi.ATT.COM> melnik@cbnewsi.ATT.COM (joann.melnik) writes: > >How do I save (decrypted) an article encrypted in rot13?? > >I use rn, and when I save the article (even though the display is >decrypted) it's in rot13 in the saved file? Yes. It is explained in an article permanently available in the group news.announce.newusers. It is one of the "answers to the most often asked questions", and is kept there so the question doen't have to be asked/answered so often. If the article isn't available at your site, complain to your news administrator (who could probably have answered the question in the first place). If all else fails, e-mail to me and I will mail you a copy. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Brian G. Gordon briang@Corp.Sun.COM (if you trust exotic mailers) | | ...!sun!bari!briang (if you route it yourself) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
djgrabin@phoenix.Princeton.EDU (David Joseph Grabiner) (10/09/89)
In article <1989Oct6.054023.4351@rpi.edu> tale@pawl.rpi.edu (David C Lawrence) writes: >This topic is loosely addressed in "Answers to Frequently Asked >Questions (Updated: 3 Sep 1989)", one of the regular postings to >news.announce.newusers. It has this to say: The Answers to Frequently Asked Questions list should be crossposted here, so that people who read this group can look up answers in it. -- David Grabiner, djgrabin@phoenix.princeton.edu These are my opinions only; AT&T wouldn't waste its time on them. All tautologies are tautologies.
melnik@cbnewsi.ATT.COM (joann.melnik) (10/09/89)
Thanks to all of you who answered my question about rot13 w/o flaming and nerz to those of you who flamed me for not reading the FM. Just to set the record straight, I know all about the "Frequently asked Questions" document and the man page for rn (I have read both in their entirety) and I checked them before posting here. I found out all about the "tr" command, but that is not what I was looking for. My question was intended to probe for a simple command (similar to "s" and/or "w" which would do what a long "tr" command would do without rotating the header as well. I thought that perhaps some such animule existed but was not documented. Anyone familiar with unix type documentation knows that this is not uncommon. Sorry if this was not clear. Joanne -- Joanne Melnik [aka AJ] | All the world's a stage.... Ahh, forget it. --------------------------|----------------------------------------------------- @> melnik@cbnewsi.ATT.COM | Disclaimer: AT&T owns me body and soul but my !> att!cbnewsi!melnik | opinions are my own [I think].