tee
记录正确输出,例
[root@station69 holiday1001]# date|tee demo1
Mon Oct 1 14:58:50 CST 2012
[root@station69 holiday1001]# cat demo1
Mon Oct 1 14:58:50 CST 2012
默认为覆盖,使用 -a 为追加
转载于:https://blog.51cto.com/mos1989/1024123
tee
记录正确输出,例
[root@station69 holiday1001]# date|tee demo1
Mon Oct 1 14:58:50 CST 2012
[root@station69 holiday1001]# cat demo1
Mon Oct 1 14:58:50 CST 2012
默认为覆盖,使用 -a 为追加
转载于:https://blog.51cto.com/mos1989/1024123