Linux 输出过滤器:tee 命令 0 个改进

命令 'tee' 类似 'cat',唯一不同是它将 stdin 输入传到 stdout,并放进文件中。

语法:

cat or tac <fileName> | tee <newFile> |  cat or tac |.....  

例子:

tac weeks.txt | tee new.txt | cat  

Linux tee Filters

看上面的截图,使用命令 'tee' 来创建文件 'new.txt'

本文为 Wiki 文章,邀您参与纠错、纰漏和优化