Answers:
echo -e "First Line" | tee ~/output.log
echo -e "Second Line" | tee -a ~/output.log
^^
从三通:
Copy standard input to each FILE, and also to standard output.
-a, --append
append to the given FILEs, do not overwrite
注意:使用-a
仍会创建提到的文件。