[root@localhost home]# cat test.txt #从左到右,从上到下打印
hello word
test file
[root@localhost home]# rev test.txt #行级 反向打印
drow olleh
elif tset
[root@localhost home]# tac test.txt #从下到上反向打印
test file
hello word
shell 命令 cat rev tac
最新推荐文章于 2021-12-14 13:01:17 发布