Reverse a string with the rev command.

$ echo 'test' | rev
tset

It also works with files.

$ rev Procfile
br.amup/gifnoc C- amup cexe eldnub :bew