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