#!/bin/bash
if [ "a" == "b" ]
then
echo yes
elif [ "a" == "a" ]
then
echo 1234
else
echo 5678
fi
shell 中 if elif else fi 的用法
于 2019-07-17 16:43:10 首次发布
#!/bin/bash
if [ "a" == "b" ]
then
echo yes
elif [ "a" == "a" ]
then
echo 1234
else
echo 5678
fi