date取得分钟数
$(()) 运算
#execute every 5 minutes a=`date +%M` b=$(( $a % 5 )) if [ $b = 0 ] ; then echo "execute it" else echo "Not execute" fi
date取得分钟数
$(()) 运算
#execute every 5 minutes a=`date +%M` b=$(( $a % 5 )) if [ $b = 0 ] ; then echo "execute it" else echo "Not execute" fi