I have 2 variables which i get as input from bash, i want to print the relation between the 2 variables i.e if X is greater or less or equal to y , here is how i am trying to achieve
read X
read Y
if ["$X" < "$Y"]
then
echo "X is less than Y"
else
if ["$X" > "$Y"]
then
echo "X is Greater than y"
else
echo "X is equal to Y"
fi
fi
I am getting the error
line 4: 2]: No such file or directory
line 8: [5: command not found