變量替換

  設置變量爲只讀 先對一個變量賦值,再對變量readonly ,任何用戶不能對只讀變量進行重新賦值 a=ccc readonly a   對變量的路徑進行操作,先判斷路徑是不是非空 1、判斷一個變量是否定義 [email protected]:~$ echo $test               #test沒定義       [email protected]:~$ result=${test
相關文章
相關標籤/搜索