目录
2.while,文件读写,"Ctrl +D " :End of the file;


1.For 的易错点
for (())
do
commands
done
for i in `seq 1 100`
do
commands
done
2.while,文件读写,"Ctrl +D " :End of the file;
#!/bin/bash
read -p "Please enter a lower bound: " m
read -p "Please enter a upper bound: " n
sum=0
while [ $m -lt $n ]
do
sum=$[$sum + $m]
let m++
done
echo $sum
3.Case_format,注意双分号;
case variable in
condition 1)
commands
;;
condition 2)
commands
;;
commands
;;
esac
1万+

被折叠的 条评论
为什么被折叠?



