例子1:
Type=Video;
if(($Type == "Video"));then
StartUE=0;
fi
if(($Type == "INF"));then
StartUE=1;
fi
echo $StartUE
例子2:
if(($Type == "Video"));then
echo $Type;
else
echo "Hello";
fi
例子3:if else
NBUE=5;
Type="ef";
if [ $Type = "ef" ]; then
StartUE=0;
elif [ $Type = "Hello" ]; then
StartUE=1;
fi
echo $StartUE;
for bearer in $(seq $StartUE 2 $(( 2*${NBUE}- 1 )))
do
echo $bearer
done