tee 命令
命令用法
tee [OPTION]... [FILE]...常用可选参数
使用实例
# ls 打印当前目录内容,同时写入到 output.txt 中
$ ls | tee output.txt | cat -n
1 bin
2 myapp.csproj
3 obj
4 output.txt
5 Program.csLast updated
tee [OPTION]... [FILE]...# ls 打印当前目录内容,同时写入到 output.txt 中
$ ls | tee output.txt | cat -n
1 bin
2 myapp.csproj
3 obj
4 output.txt
5 Program.csLast updated