home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!walter!fork!snk
- From: snk@fork.bae.bellcore.com (Samuel Kamens)
- Subject: Re: Need rot13 script
- Message-ID: <1992Sep2.151901.12116@walter.bellcore.com>
- Sender: news@walter.bellcore.com
- Nntp-Posting-Host: fork.bae.bellcore.com
- Reply-To: snk@bae.bellcore.com
- Organization: Bell Communications Research
- References: <36915@uflorida.cis.ufl.edu>
- Distribution: na
- Date: Wed, 2 Sep 92 15:19:01 GMT
- Lines: 27
-
- In article <36915@uflorida.cis.ufl.edu>, kcw@reef.cis.ufl.edu (Ken Whedbee) writes:
- >
- > Hi -
- >
- > Can somebody send me a simple shell script that can convert a
- > text file back and forth between rot13 ?
- >
- > Many thanx!
- >
-
- Read the man page for the "tr" command.
-
- Here's the command to do what you want:
-
- tr [a-m][A-M][n-z][N-Z] [n-z][N-Z][a-m][A-M] < inputfile > outputfile
-
- Bear in mind that your tr may differ a bit -- this works on my Sparc
- IPX, SunOS 4.1.1.
-
- Sam
-
-
- --
- Sam Kamens Bell Communications Research
- snk@bae.bellcore.com Phone: (908) 699-7509
- 444 Hoes Lane Room RRC 1D-210
- Piscataway, NJ 08854
-