摘要:
case 语法 1 read -p "num:" n 2 3 case $n in 4 1) 5 echo haha 6 ;; 7 2) 8 echo hehe 9 ;; 10 3) 11 echo heiehi 12 ;; 13 *) 14 echo '1 or 2' 15 ;; 16 esac 阅读全文
posted @ 2020-02-11 11:55
wilson'blog
阅读(219)
评论(0)
推荐(0)
摘要:
while中的5种条件 1.数学比较 1 read -p "Num :" num1 2 while [ $num1 -gt 0 ] 3 do 4 echo 'greater' 5 sleep 1 6 7 done 2.字符串比较 1 read -p "enter the password:" pw 阅读全文
posted @ 2020-02-11 02:42
wilson'blog
阅读(728)
评论(0)
推荐(0)