The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #11 (permalink)  
Old 05-15-2008
amatuer_lee_3 amatuer_lee_3 is offline
Registered User
 

Join Date: May 2008
Posts: 53
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.
Reply With Quote