Shell debug功能
Shell debug功能
Shell debug功能,範例如下:
debug.sh
#!/bin/bash #Filename: debug.sh for i in {1..6}; do set -x echo $i set +x done echo “Script executed” |
參考出處:Linux Shell 腳本攻略 P 22
Shell debug功能
Shell debug功能,範例如下:
debug.sh
#!/bin/bash #Filename: debug.sh for i in {1..6}; do set -x echo $i set +x done echo “Script executed” |
參考出處:Linux Shell 腳本攻略 P 22