.TH rev "" "" Command
.PC "Print text backwards"
\fBrev [\fIfile ...\^\fB]\fR
.PP
.B rev
reverses the order of the characters in each line of each input
.I file
and writes the result to the standard output.
If no
.I file
is specified,
the standard input is used instead.
.SH Example
.II "Mandrake the Magician"
The following allows you to give a command like Mandrake the Magician.
Typing
.DM
	rev
	Rocks break down wall!
	\fB<ctrl-D>\fR
.DE
.PP
displays:
.DM
	!llaw nwod kaerb skcoR
.DE
.PP
on your screen.
.SH "See Also"
.Xr "commands" commands
