直接echo到文件,日期与日志内容间存在\n换行 echo -e `date '+%Y-%m-%d %H:%M:%S %A'` "\n日志内容" >> log.log #同上,简化版。 echo -e `date '+%F ...
確定! 回上一頁