#!/bin/bash
read -p "Enter first number: " num1
read -p "Enter Second number: " num2
if [$num1 > $num2] ; then
echo $num1 is greater than $num2
if [$num1 == $num2] ; then
echo $num1 is equal to $num2
if [$num1 < $num2] ; then
echo $num1 is less than $num2
else
echo goodbye
fi
Am I missing something? Whenever I execute a script with an if statement in it I get errors. The example above give me this error
./comp.sh: line 13: syntax error: unexpected end of file