rev - reverse lines characterwise.
On this page we only give you a short introduction with a few examples. We encourage you to read the manual (
rev - reverse lines characterwise
Output part of a file's content
$ rev one-file.txt ereht iH txet emos tsuj si sihT eoD nhoJ/
Compare this to a printout of the entire content of the file:
$ cat one-file.txt Hi there This is just some text /John Doe