now that i have done it for months
how do i restrict user inputs for date based on the month chosen?
is it:
Code:
while true; do
echo " "
echo "Enter Date of the Month (1-31): "
read DATE
case $DATE in [1-31]);;
*) echo " "
echo "Invalid date, try again" >&2;;
esac
done
grep $4 "$DATE" *.hits >tempfile