Wednesday, October 30, 2013

Rev Command In Linux

Rev Command In Linux

Command :  rev
usage        :  reverse lines of a file or files

Syntax: $ rev [-V] [-h] [file ...]

Examples:

1. To print options and help of this command

    $ rev --help

2. To print Reverse the order of characters in every line

    $ cat rev.txt

    Quick brown fox jumps over the lazy dog

    $ rev rev.txt

    god yzal eht revo spmuj xof nworb kciuQ

Rev Command In Linux


No comments:

Post a Comment

Linux Tips and tricks,Online Linux Helpers