如何把shell 命令执行的结果放到指定的日志文件中? 例如ant,sh命令

如题所述

第1个回答  2011-11-12
#ls -l|tee ./t.log 直接覆盖日志

#ls -l|tee -a ./t.log 结果附加到日志
相似回答