判断字符串包含
if [[ "${line}" =~ "substr" ]]; then echo "包含哦" fi
这里好像得用 [[ ]] 才行,[ ] 可能会报错.
[[ ]]
[ ]
rainbow
这个人很懒,什么都没留下
文章评论