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
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
No comments:
Post a Comment