How to identify numeric Input
Hi guys when i execute my script it says integer expression expected .How would i handle this in my script please suggest.
Please Enter Your Age sa
./ifexercise.sh: line 7: [: sa: integer expression expected
./ifexercise.sh: line 10: [: sa: integer expression expected
Please enter proper Input
Content of my script.
echo "Please Enter Your Age"
if [ -z "$age" ]
echo "dont enter empty string"
elif [ "$age" -gt $retirement_age ]
echo "You Should retire now"
elif [ "$age" -le $retirement_age ]
echo "You are young"
echo "Please enter proper Input"