*通配符匹配

version=$(cat /etc/redhat-release |awk '{print $4}')
echo $version

if [[ $version == 8 ]]; then
echo "包含"
else
echo "不包含"
fi

`

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2021-05-31
  • 2021-06-06
  • 2022-12-23
  • 2022-03-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-20
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案