会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
云刄
云上於天,登锋履刄 ; hello,world ; hello,美好生活 ;
博客园
首页
新随笔
联系
订阅
管理
2019年11月5日
SHELL 查找字符串中包含字符的命令
摘要: 1.通配符 string='My long string' if [[ $string == *"My long"* ]]; then echo "It's there!" fi 2.正则匹配 string='My long string' if [[ $string =~ .*My.* ]]; t
阅读全文
posted @ 2019-11-05 10:35 云刄
阅读(9656)
评论(0)
推荐(0)
编辑
公告