Hi
I need to test an answer in a script is a number
something like this
print -n "Type a number : "
read number
if (test $number = xxxxx)
then
echo "great"
else
echo "this is not a number"
fi
the question is - what should i put insteed of xxxxx(if there is something)
The number can't be 4,9 it has to be a rounded up number
Thanks
I need to test an answer in a script is a number
something like this
print -n "Type a number : "
read number
if (test $number = xxxxx)
then
echo "great"
else
echo "this is not a number"
fi
the question is - what should i put insteed of xxxxx(if there is something)
The number can't be 4,9 it has to be a rounded up number
Thanks