linux 中实现文本的按列反转

 

001、

[root@pc1 test3]# ls
a.txt
[root@pc1 test3]# cat a.txt    ## 测试数据
r d u
y f s
x v y
[root@pc1 test3]# rev a.txt  ## 实现按列反转
u d r
s f y
y v x

 

posted @ 2022-10-31 08:42  小鲨鱼2018  阅读(24)  评论(0编辑  收藏  举报