awk -F= '/^NAME/{print $2}' /etc/os-release
centos输出结果
"CentOS Linux"
ubuntu输出结果
"Ubuntu"
awk -F= '/^NAME/{print $2}' /etc/os-releasecentos输出结果"CentOS Linux"ubuntu输出结果"Ubuntu"转载于:https://www.cnblogs.com/chenjiye/p/10877136.html
awk -F= '/^NAME/{print $2}' /etc/os-release
centos输出结果
"CentOS Linux"
ubuntu输出结果
"Ubuntu"
转载于:https://www.cnblogs.com/chenjiye/p/10877136.html
更多推荐
所有评论(0)