0
点赞
收藏
分享

微信扫一扫

linux shell判断字符串包含(类似于contains)

RIOChing 2022-07-12 阅读 49


if echo "$string" | grep 'foo'; then
echo "It's there!"
fi


举报

相关推荐

0 条评论