Shell條件測試語句

條件測試shell 條件測試的基本語法express shell程序中,當指定條件爲真時,返回0;爲假時,返回非0。測試 條件測試的語法有兩種,分別爲test命令和[命令ui test expressionspa expression能夠由字符串,整數,文件名,以及各類運算符組成。設計 例如:字符串 1 -eq 2   測試兩個整數是否相等string ‘string’    字符串是否爲空io
相關文章
相關標籤/搜索