rev

From Juneday education
Jump to: navigation, search


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 (man rev).

Description

rev - reverse lines characterwise

Example output

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