依据命令执行结果来判断
#判断内核版本是否为新RES=$( version | grep "di " | wc -l)if [ ${RES} -eq 0 ]; then echo "nonono"else echo "yyyy"fi