Linux命令之tee - 重定向输出到多个文件

http://codingstandards.iteye.com/blog/833695

将标准输出复制一份

ls -al | tee -a tmpls.log

ls -al >>tmpls.log

EOF是END Of File的缩写,表示自定义终止符.既然自定义,那么EOF就不是固定的,可以随意设置别名,在linux按ctrl-d就代表EOF.
https://www.cnblogs.com/kevingrace/p/6257490.html

tee index.html <<-'EOF'
Welcome to 51CTO docker class
EOF

猜你喜欢

转载自www.cnblogs.com/antball/p/9663329.html