Shell
循环
for i in {1..10}; do echo "Hello, World"; done分支
if [ $score >=80 ]; then
echo "great"
elif [ $score >= 60 ]; then
echo "good"
else
echo "bad"
ficase $msg in
"hello")
echo "hi"
;;
"goodbye")
echo "bye"
;;
*)
echo "i have no idea for what you means"
;;
esac最后更新于