SuperScript::Software::miscellanea

The rot13 program


Interface

  rot13

rot13 read characters from standard input, exchanges each character in the English alphabet with the character 13 positions removed, preserving case, and writes the result to standard output

If it sees the end of input, rot13 exits 0. If it encounters an error, rot13 exits 111.

rot13 has no trouble with arbitrary characters in its input. The pipeline

  rot13 | rot13
prints an exact copy of its input.