Really dumb question here, but this is my code:
while true
do
read -p ">>>>" com
if [[$com -eq "ok"]]
then
echo "Good"
else
echo "Bad"
fi
done
When you type ok
it should say Good
and if you type anything else it will say Bad
. However, when I run it and type ok, this it comes out like this:
sg.sh: line 13: [[ok: command not found
Bad