使用bash匹配数字
1234567
str="1222"if [[ $str =~ ^[0-9]+$ ]];then echo "True"else echo "False"fi
1520
617
603
258
202
近期评论