armylogman
Technical User
I am trying to do a date countdown for each day that passes between 19 Nov to 27 Nov I want to display a message each day counting down from 8 days out down to the last day of 27 Nov here is what i am doing now sure there is a better way
moda1=`date '+%m%d'`
if [ $moda1 -eq 1119 ]
echo "The exercise is 8 days away please be prepared to start on 27 Nov......"
read
echo " PRESS any key to continue....."
read
clear
else
break
fi
if [ $moda1 -eq 1120 ]
echo "The exercise is 7 days away please be prepared to start on 27 Nov......"
read
echo " PRESS any key to continue....."
read
clear
else
break
fi
moda1=`date '+%m%d'`
if [ $moda1 -eq 1119 ]
echo "The exercise is 8 days away please be prepared to start on 27 Nov......"
read
echo " PRESS any key to continue....."
read
clear
else
break
fi
if [ $moda1 -eq 1120 ]
echo "The exercise is 7 days away please be prepared to start on 27 Nov......"
read
echo " PRESS any key to continue....."
read
clear
else
break
fi