Linux 脚本命令结果输出到文件

From: http://bbs.chinaunix.net/thread-1997207-1-1.html

sh test.sh | tee log.txt