Chrissirhc
Programmer
Hi
If I do this:
NUMBER=10
if [ $NUMBER < 10 ]
then
echo 'number is less than 10'
else
echo 'number is not less than 10'
It doesn't work. I get the error "Else unmatched". What am I doing wrong?
Thanks,
Chris
If I do this:
NUMBER=10
if [ $NUMBER < 10 ]
then
echo 'number is less than 10'
else
echo 'number is not less than 10'
It doesn't work. I get the error "Else unmatched". What am I doing wrong?
Thanks,
Chris