天天看點

判斷條件總結

整數測試

-eq

-ne

-gt

-lt

-ge

-le

字元測試

==

!=

<

>

z

n

檔案測試

-e

-f

-d

-r

-w

-x

組合測試條件

-a :與關系

-o :或關系

繼續閱讀