String comparison in bash. [[: not found
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 mentioned question: #!/bin/bash string=’My string’; if [[ “$string” == *My* ]] then echo “It’s there!”; fi needle=”y s” if [[ … Read more