码迷,mamicode.com
首页 > 系统相关 > 详细

shell判断变量内容里包含特定字符串

时间:2017-05-11 14:44:21      阅读:228      评论:0      收藏:0      [点我收藏+]

标签:1.2   变量   字符   add   rgb   any   sim   title   pad   

shell判断变量内容里包含特定字符串

[ “$str” =~ “IEEE80211” ] && echo “it contains IEEE80211”


nicephil@gmail.com 2017-5-11

shell判断变量内容里包含特定字符串

标签:1.2   变量   字符   add   rgb   any   sim   title   pad   

原文地址:http://www.cnblogs.com/nicephil/p/6840499.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!