tee
tee功能说明:读取标准输入的数据,并将其内容输出成文件。
语 法:tee [-ai][--help][--version][文件...]
补充说明:tee指令会从标准输入设备读取数据,将其内容输出到标准输出设备,同时保存成文件。
参 数:
-a或--append 附加到既有文件的后面,而非覆盖它.
-i-i或--ignore-interrupts 忽略中断信号。
--help 在线帮助。
--version 显示版本信息。
tee
tee [options] files
Accept output from another command and send it both to standard output and to files (like a T or fork in the road).
Options
Append to files; do not overwrite.
Ignore interrupt signals.
Print a help message and then exit.
Print version information and then exit.
Example
ls -l | tee savefile