linux tee 命令
来源:互联网 发布:大数据 医学的统计 编辑:程序博客网 时间:2024/06/05 05:07
tee 重定向输出到多个文件
在执行Linux命令时,我们既想把输出保存到文件中,又想在屏幕上看到输出内容,就可以使用tee命令
要注意的是:在使用管道线时,前一个命令的标准错误输出不会被tee读取。
$ man tee
NAME tee - read from standard input and write to standard output and filesSYNOPSIS tee [OPTION]... [FILE]...DESCRIPTION Copy standard input to each FILE, and also to standard output. -a, --append append to the given FILEs, do not overwrite -i, --ignore-interrupts ignore interrupt signals --help display this help and exit --version output version information and exit If a FILE is -, copy again to standard output.
常见用例:
tee file //覆盖tee -a file //追加tee - //输出到标准输出两次tee - - //输出到标准输出三次tee file1 file2 - //输出到标准输出两次,并写到那两个文件中ls | tee file 另:把标准错误也被tee读取ls "*" 2>&1 | tee ls.txt
原文地址:http://blog.csdn.net/williamwang2013/article/details/8550178
0 0
- linux tee命令
- linux tee命令
- Linux:tee命令
- linux命令之tee
- linux tee 命令详解
- linux tee 命令
- linux tee命令详解
- linux tee 命令详解
- linux tee 命令详解
- linux tee命令
- Linux shell tee 命令
- linux命令之tee
- linux tee 命令详解
- linux 命令之 tee
- linux tee 命令详解
- linux tee 命令详解
- linux 命令之tee
- Linux的tee命令
- Kettle学习1
- Freemarker 使用
- RUNTIME_CLASS(运行时间类)
- OC 属性
- append_zero 浮点和double补充0 库函数PK自己写的函数效率对比
- linux tee 命令
- 地图与定位
- zk 原理 watcher 监听
- 如何装win10 1511最新官方版(U盘装新系统)16年3月30日更新了可用激活
- 1.redis学习笔记:redis数据库的安装
- memcache查看数据命令
- 文件下载、打包下载的问题汇总
- Android Studio 如果调用外部包(20151125)
- Codeforces 596E Wilbur and Strings(序列自动机)