rev(1)
Name
rev − reverse character positions in file data
Syntax
rev [file...]
Description
The rev command copies the named files to the standard output, reversing the order of characters in every line. If no file is specified, the standard input is copied.