代码改变世界

set -x 与 set +x

2020-04-17 12:34  jetwill  阅读(477)  评论(0编辑  收藏  举报
#!/bin/bash
set -x            # activate debugging from here 从这里开始打印执行的命令及其参数
your other commands...
set +x            # stop debugging from here 从这里停止打印执行的命令及其参数