rev: Reverse lines of a file
Reverse lines of a file.
Syntax:
rev [file]
The rev utility copies the specified files to the standard output, reversing the order of characters in every line.
If no file is specified, the standard input is read (type CTRL-D to end).
The most common use of rev is to reverse the lines, apply a sort to the result and then pipe through rev a second time to restore the original.
Example
Given the input of:
The quick brown fox
jumps over the lazy dog
Rev will output:
xof mworb kciuq ehT
god yzal eht revo spmuj
"The weirder you?re going to behave, the more normal you should
look. It works in reverse, too. When I see a kid with three or four
rings in his nose, I know there is absolutely nothing extraordinary
about that person"
- P. J. O?Rourke
Post being viewed right now
Item date: 18.06.2009
Views: 1780
Item date: 13.12.2009
Views: 1206
Item date: 08.03.2009
Views: 333
Item date: 06.02.2009
Views: 1004
Item date: 14.05.2009
Views: 1361
Item date: 18.06.2009
Views: 629
Item date: 21.07.2009
Views: 2062
Item date: 22.03.2009
Views: 7677
Item date: 27.09.2009
Views: 1852
Item date: 27.11.2011
Views: 118