摘要:
一、for循环 第一种风格 for ((;;;))(类似C语言风格) do command done 例子:for ((i=0;i<10;i++)) do echo $i done 第二种风格 for variable in {list} do command done 例子:for i in {1 阅读全文
摘要:
一、if语句用法 if expression then command fi 例子:使用整数比较运算符 read -p "please input a integer:" a if [ "$a" -gt 10 ] then echo "The integer which you input is b 阅读全文