我正在使用Ubuntu系统shell,而不是bash,我发现常规方式无法正常工作:
#!/bin/sh string='My string'; if [[ $string =~ .*My.* ]] then echo "It's there!" fi
错误[[:找不到!
我该怎么做才能解决这个问题?
shell
shell ×1