ok i have entered this to limit it from dates 1-31
Code:
case $DATE in [1-9]|[12][0-9]|3[01]) break;;
*) echo Invalid date, try again >&2;;
esac
but it doesnt work. it will come up to enter the date but no matter what date i enter it just asks me to enter again.