- 链接地址:https://blog.csdn.net/weixin_39521068/article/details/117006567
- 链接标题:linux 包含关系,Bash技巧:使用[[命令的 =~ 操作符判断字符串的包含关系-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:2466
文章浏览阅读379次。在 Linux bash shell 中,可以使用 [[ 命令来进行判断。其中,可以使用 [[ 命令的 =~ 操作符来判断某个字符串是否包含特定模式。查看 man bash 对 [[ 命令的 =~ 操作符说明如下:An additional binary operator, =~, is available, with the same precedence as == and !=.When i..._=~ binary oprator
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除