How to check if a string contains a substring in Bash
I have a string in Bash: string=”My string” How can I test if it contains another string? if [ $string ?? ‘foo’ ]; … Read more
I have a string in Bash: string=”My string” How can I test if it contains another string? if [ $string ?? ‘foo’ ]; … Read more