shell调试手段

可以采用test命令来测试条件是否达到,再决定是否输出debug日志 #!/bin/sh debug=1 test $debug -gt 0 && echo "Debug is on"...
阅读全文