hi, when i type in a value higher than 20 it will show me the validation but if i put a negative figure it just goes goes blank where i just keep typing and nothing happens so i had to control c to exit out the process, can someone help me please.
clear
read -p "please enter professionalism score:" prof1
echo -e "\n"
output=$(grep -w "$prof1" appraisalrecord)
output4=$(echo $prof1 | tr -dc '[:digit:]')
if [[ $prof1 -gt 20 && $prof1 -le -1 ]]; then
echo "please enter a score out of 20"
sleep 2
newrecord
elif [[ "$prof1" = "$output4" ]]; then
echo -e "$prof1 has been accepted\n"
sleep 2
else
echo "The input must be a numerical number"
sleep 2
newrecord
fi