I'm trying to follow these explanations on if condition: http://linuxconfig.org/bash-printf-syntax-basics-with-examples
My code is
#!/bin/bash
result="test"
if [$result = "test"];
then printf "ok"
fi
But I have the following error: line 4: [test: command not found