tac

功能说明:反向显示文件内容。
参数选项:
-b 在行前而非行尾加分隔标志。
-r 将分隔标志视作正则表达式来解析。
-s 使用指定字符串代替换行作为分隔标志。
 
cat命令与tac命令的对比:
[root@testdb62 tmp]# cat 1.log
1 2 3 4 5 
6 7
8 9 
10 11
[root@testdb62 tmp]# tac 1.log
10 11
8 9 
6 7
1 2 3 4 5
原文地址:https://www.cnblogs.com/l10n/p/9416616.html