isso faz:
cat /tmp/aa | tac | rev
onde tac inverte o arquivo linha por linha, mantendo os caracteres intactos ... então, rev termina-o simplesmente invertendo os caracteres de cada linha, deixando linha por linha intacta .. assim, por exemplo:
cat /tmp/aa
Is there a way to read characters backwards from the end of a file in the terminal?
For instance, less allows you to read line by line, starting from the beginning. Is there a similar utility or line that could be run in the terminal that could display a file backward character by character?
cat /tmp/aa | tac | rev
retcarahc yb retcarahc drawkcab elif a yalpsid dluoc taht lanimret eht ni nur eb dluoc taht enil ro ytilitu ralimis a ereht sI .gninnigeb eht morf gnitrats ,enil yb enil daer ot uoy swolla ssel ,ecnatsni roF
lanimret eht ni elif a fo dne eht morf sdrawkcab sretcarahc daer ot yaw a ereht sI