摘要: 原文链接:https://blog.csdn.net/taiyang1987912/article/details/39551385 https://www.runoob.com/w3cnote/linux-shell-brackets-features.html 阅读全文
posted @ 2022-08-16 19:58 shenshu 阅读(38) 评论(0) 推荐(0) 编辑
摘要: # shell 数字不支持\d ,只能使用[0-9] if [[ "abcyyy13554221547HelloxxxWorld" =~ yyy([0-9]{11})(Hello)xxx(.*) ]] then echo The regex matches! echo $BASH_REMATCH e 阅读全文
posted @ 2022-08-16 02:11 shenshu 阅读(621) 评论(0) 推荐(0) 编辑