在Shell Script 的$0 變數代表指令的第一個參數, 即Shell Script 本身, ... 所以最簡單的方法是用dirname, 將/home/samtang/test.sh 的目錄位置取得, ...
確定! 回上一頁