shell整除取余

date取得分钟数
$(()) 运算

ide

#execute every 5 minutes
a=`date +%M`
b=$(( $a % 5 ))
if [ $b = 0 ]it

then
       echo "execute it"
else
       echo "Not execute"
ficlass

相关文章
相关标签/搜索