1. Command function
rev reverse output file contents line by line
2. Grammar format
rev file
3. Example of use
[root@localhost ~]# echo {a..k} >> test [root@localhost ~]# cat test a b c d e f g h i j k [root@localhost ~]# rev test k j i h g f e d c b a [root@localhost ~]# echo {a..k} |rev k j i h g f e d c b a