shell将脚本输出结果记录到日志文件的实现 使用tee命令: sh portal main sh |tee log txt 获取脚本父类路径 cmddir= "`dirname $0` " 以上这篇shell Linux Shell 2022-04-03 344 点赞 5 评论 521 浏览