When I run this script:
#!/bin/bash
if [[ "abcd" =~ ^.*$ ]]; then
echo "something"
fi
I get:
./tmp2.sh: line 3: conditional binary operator expected
./tmp2.sh: line 3: syntax error near `=~'
./tmp2.sh: line 3: `if [[ "abcd" =~ ^.*$ ]]; then'
I've tried all suggestions I've found, but still the same:/ Help me, please!