文件测试:
-e
-f
-d
-r
-w
-x
-s
测试条件的逻辑组合:组合测试
与:-a
或:-o
非:!
与:&&
或:||
非:!
if [ $# -gt 1 -a $# -lt 10]
if id $Username &> /dev/null && []
转载于:https://blog.51cto.com/13285023/2043447
文件测试:
-e
-f
-d
-r
-w
-x
-s
测试条件的逻辑组合:组合测试
与:-a
或:-o
非:!
与:&&
或:||
非:!
if [ $# -gt 1 -a $# -lt 10]
if id $Username &> /dev/null && []
转载于:https://blog.51cto.com/13285023/2043447