Shell Script 學習筆記
介紹
變數
路徑
條件判斷
例外
Powered by
GitBook
例外
例外
顯示例外訊息並中斷執行
echo "Error!" 1>&2 exit 64
記錄例外訊息至 Log 檔案並中斷執行
echo "Error!" > logfile.log exit 125
參考資料
linux - Raise error in a Bash script - Stack Overflow
results matching "
"
No results matching "
"