shell调试

可以在sh内使用set -x,使用后,会打印每条命令的输出

set -x 开启 

set +x 关闭

原文地址:https://www.cnblogs.com/drizzlewithwind/p/8982024.html