http://serverfault.com/questions/16204/how-to-make-bash-scripts-print-out-every-command-before-it-executes
很简单,如下脚本:
#!/bin/bash
set x
ls
即可完成所执行命令的打印。
http://serverfault.com/questions/16204/how-to-make-bash-scripts-print-out-every-command-before-it-executes
很简单,如下脚本:
#!/bin/bash
set x
ls
即可完成所执行命令的打印。