for ((a=0;a<=500;a=a+7));do echo $a;done #a赋值0,每输出一次,a+7
#!/bin/bash
for i in {0..500}
do
if [[ i%7 -eq 0 ]];then
echo $i
fi
done
for ((a=0;a<=500;a=a+7));do echo $a;done #a赋值0,每输出一次,a+7
#!/bin/bash
for i in {0..500}
do
if [[ i%7 -eq 0 ]];then
echo $i
fi
done