Reverse characters in each line of a file.
rev [ File ... ]
The rev command copies the named files to standard output, reversing the order of characters in every line. If you do not specify a file, the rev command reads standard input.
To reverse characters in each line of a file, enter:
If the file file contains the text:
then the rev command displays:
|/usr/bin/rev||Contains the rev command.|
Input and Output Redirection Overview in AIX 5L Version 5.1 System User's Guide: Operating System and Devices.