shell调试手段 可以采用test命令来测试条件是否达到,再决定是否输出debug日志 #!/bin/sh debug=1 test $debug -gt 0 && echo "Debug is on"... 2013/08/27 Shell浏览:62shell调试手段已关闭评论 阅读全文