rev

Reverse a line of text. More information: https://manned.org/rev.

echo "hello" | rev

rev path/to/file