rev:每行反向输出

xiaohai 2021-06-17 11:25:00 2961人围观 标签: Linux 
简介 rev命令用于按行反向输出文件内容
说明

  rev命令用于按行反向输出文件内容

格式

  vimdiff [option] [filename]

示例
[root@localhost ~]# cat test.txt 
name,Age,Address,Num
ZhangHi,20,SiChuan,100
YangLiu,18,BeiJing,99
LiSi,21,ShangHai,10

[root@localhost ~]# rev test.txt 
muN,sserddA,egA,eman
001,nauhCiS,02,iHgnahZ
99,gniJieB,81,uiLgnaY
01,iaHgnahS,12,iSiL
[root@localhost ~]#