date取得分鐘數$(()) 運算ide
#execute every 5 minutesa=`date +%M`b=$(( $a % 5 ))if [ $b = 0 ]it
then echo "execute it"else echo "Not execute"ficlass