unix Scripting
I need help with scripting, im trying to get a user to enter two number between 1 and 5 and if they enter a number above 5 then i have to have a message show up that they have to enter a new number. then when they enter a number with in the ranges i have to add the numbers and divide by three. this is what i have so far.
case
echo "Please enter a number"
read num1
echo "Please enter a number"
read num2
if num1 -gt 5; then
echo "Please pick a number less than 5 for number 1"
else
echo "Thank you for entering number 1"
if num2 -gt 5; then
echo "Please pick a number less than 5 for number 1"
else
echo"Thank you for entering number 1"
esac
|