shell條件測試test

shell條件測試能夠經過如下兩種方式:html test   參數    測試內容shell [ 參數  測試內容 ]數組 1、測試文件類型:bash test  -e   文件名          (測試文件是否存在)post [ -e  文件名 ]                測試文件是否存在,注意中括號兩邊的空格測試 test -f   文件名             判斷是否爲普通文件
相關文章
相關標籤/搜索