#!/bin/bash
centos_version() {
sed -rn 's#^.* +([0-9]+)\..*#\1#p' /etc/redhat-release
}
centos_version
实现判断CentOS的主版本号
猜你喜欢
转载自blog.csdn.net/timonium/article/details/122205805
今日推荐
周排行