dimanche 27 septembre 2015

bash, issue on if condition

I'm trying to follow these explanations on if condition: http://ift.tt/1GbkloV

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

Aucun commentaire:

Enregistrer un commentaire