1、提取字符串中以.ddd结尾的ddd值 result=$(echo "chip86.500" | grep -Eo '\.[0-9]{1,}' | grep -Eo '[0-9]{1,}') result=$(echo "chip86.50 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交