rev reverse output file content

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324852788&siteId=291194637