加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

Bash regex =?运算符

发布时间:2020-12-15 20:02:00 所属栏目:安全 来源:网络整理
导读:什么是operator =?调用?它只是用来比较右侧和左侧吗? 为什么运行测试时需要双方括号? 即。 [[$ phrase =?$ keyword]] 谢谢 What is the operator =~ called? 我不知道它有一个名字。 bash documentation只是调用它= =运算符。 Is it only used to compare
什么是operator =?调用?它只是用来比较右侧和左侧吗?

为什么运行测试时需要双方括号?

即。 [[$ phrase =?$ keyword]]

谢谢

>

What is the operator =~ called?

我不知道它有一个名字。 bash documentation只是调用它= =运算符。
>

Is it only used to compare the right side against the left side?

右侧被认为是扩展正则表达式。如果左侧匹配,则运算符返回0,否则返回1。
>

Why are double square brackets required when running a test?

因为=?是[[expression]]复合命令的运算符。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读