rev

rev - reverse lines characterwise


Reverse lines in a file:

rev file.txt

Reverse a string from command line:

echo "This is a test" | rev

Display the version information and exit:

rev -V