if多重条件的示例代码:

if [ $a = "aa" -a $b = "bb" ] || [$c = "cc" -a $d = "dd" ];
then
echo "success"
fi

代码整理自:https://blog.csdn.net/bytxl/article/details/50618786

Related Posts: Linux Shell中if多重条件的写法 :

avatar