美文网首页
结构化命令

结构化命令

作者: 食梦狸猫 | 来源:发表于2019-04-10 14:44 被阅读0次

if [ condition ]; then

elif [ condition ]; then

else [ condition ]
fi

if [ condition1 ] && [ condition2 ]; then
fi

if [ condition1 ] || [ condition2 ]; then
fi

case var in
pattern1 | pattern2) command1;;
pattern3) command2;;
*) command3;;
esac

for var in list
do
command
done

while [ condition ]
do

done

until []
do

done

相关文章

网友评论

      本文标题:结构化命令

      本文链接:https://www.haomeiwen.com/subject/vtbniqtx.html