摘要:
#!/bin/bashvariable="This is a fine mess."echo "$variable"# Regex matching with =~ operator within [[ double brackets ]].if [[ "$variable" =~ T.........fin*es* ]]# NOTE: 从bash V3.2开始,正则表达式不再用引号引起来then echo "match found" # match foundfi#!/bin/bashinput=$1if [[ 阅读全文
posted @ 2013-06-29 20:30
sunsweet
阅读(174)
评论(0)
推荐(0)
浙公网安备 33010602011771号