SuperScript::Software::miscellanea

The revline program


Interface

  revline

revline read lines from standard input, reverses the order of the characters in each line, and prints the result to standard output. If it sees the end of input, revline exits 0. If it encounters an error, revline exits 111.

revline has no trouble with arbitrary characters within lines, or with a partial last line. The pipeline

  revline | revline
prints an exact copy of its input.