#!/bin/bash
for ((i=105;i<=999;i+=10))
do
echo $i
done
seq 100 999 | grep '5$'
#!/bin/bash 指定shell
Echo “Please input a number:”
Read n
M=$n
Sum=0
While test $m –ne 0
Do
If test $(($m%10)) –eq 2
Then
Sum=$(($sum+1))
Fi
N=$(($m/10))
Done
Echo “There are $sum ‘2’ in number $n!”
懒的你,好好看书吧,shell编程