$0 :腳本檔案路徑本身; 取檔案名:basename $0
$# : 腳本參數個數
$* : 所有參數,每個參數當作為一個字串,一般用于儲存使用者的參數
$@: 所有參數,所有參數當作為一個字串,一般用于儲存使用者的參數
本文轉自leonardos51CTO部落格,原文連結:http://blog.51cto.com/leomars/1915148 ,如需轉載請自行聯系原作者
$0 :腳本檔案路徑本身; 取檔案名:basename $0
$# : 腳本參數個數
$* : 所有參數,每個參數當作為一個字串,一般用于儲存使用者的參數
$@: 所有參數,所有參數當作為一個字串,一般用于儲存使用者的參數
本文轉自leonardos51CTO部落格,原文連結:http://blog.51cto.com/leomars/1915148 ,如需轉載請自行聯系原作者