shell2

邏輯判斷
shell2
if 判斷
shell2
elif 其餘條件
if ;then ;fi
if ;then ;eles ;fi
if ;then ;elif ;;then ;else ;; if
shell2
-f 判斷 文件是不是普通文件且存在
-d 判斷目錄是否存在
-r 是否可讀
shell2
-x 是否可執行
shell2
if用法
shell2
-z 判斷是否爲空
shell2shell

-n 判斷是否部位空 變量須要用雙引號引發來
shell2
判斷用戶裏面是否有 -q 過濾
shell2
case
shell2
read 讓用戶輸入字符串
shell2
case
shell2ide

相關文章
相關標籤/搜索