I need to compare a variable with a string (how hard can it be)
#!/bin/bash
a=22
if ["$a" == "23"]
then
echo yes yes
fi
I get
./x: line 5: [22: command not found
I've tried to remove quotes, or use [[...]]
. But whatever I do, I get the command not found
error. Any suggestions what I do wrong?