grep -o "[0-9]+" version|head -1 grep -o "[[:digit:]]+" /etc/centos-release|head -1
本文标题:判断linux主版本
本文链接:https://www.haomeiwen.com/subject/qagmjftx.html
网友评论