功能说明:读取标准输入的数据,并将其内容输出成文件。此工具在coreutils软件包
语 法:tee [-ai][--help][--version][文件...]
补充说明:tee指令会从标准输入设备读取数据,将其内容输出到标准输出设备,同时保存成文件。
参 数: -a或--append -i-i或--ignore-interrupts --help 在线帮助。 --version 显示版本信息。 用 法:
[root@localhost ~]#tee --help
Usage: tee [OPTION]... [FILE]...
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. #如果文件名为 -,复制信息到标准输出
Report bugs to .
[root@localhost ~]#make | tee software.make #把编译信息输出到software.make里
[root@localhost ~]#cat slayers.story |tee ss-copy1 ss-copy2 ss-copy3 #列出文本文件slayers.story的内容,同时复制3份副本,文件名称分别为ss-copy1、ss-copy2、ss-copy3
更多信息: 请使用man tee,info tee 查看帮助。
没有评论 :
发表评论