ubuntucommon.sh 295 B

12345678910111213141516
  1. systemname=`uname -a`
  2. echo $systemname
  3. ubuntu1804="18.04."
  4. ubuntu1604="16.04."
  5. result=$(echo $systemname | grep "${ubuntu1804}")
  6. if [[ "$result" != "" ]]
  7. then
  8. echo "ubuntu 18.04"
  9. fi
  10. result=$(echo $systemname | grep "${ubuntu1604}")
  11. if [[ "$result" != "" ]]
  12. then
  13. echo "ubuntu 16.04"
  14. fi