I'm trying to get an
statement to work in Bash
if ["$s1" == "$s2"]
I've tried various forms of the
statement, using [["$s1" == "$s2"]], with and without quotes, using
, but I still get the following error:
[hi: command not found
I've looked at various sites and tutorials and copied those, but it doesn't work - what am I doing wrong?
Eventually, I want to say if
, so how can I do that?
I did just work out the spaces bit.. :/ How do I say contains?
if [[ "$s1" == "*$s2*" ]]
but it didn't work.