I am trying to compare strings in bash. I already found an answer on how to do it on stackoverflow. In script I am trying, I am using the code submitted by Adam in the menti
[[ is a bash-builtin. Your /bin/bash doesn't seem to be an actual bash.
[[
/bin/bash
From a comment:
Add #!/bin/bash at the top of file
#!/bin/bash