cat /etc/os-release |grep ^VERSION_ID=|cut -f2 -d'"'
8.10
\\
=== Get the major version ===
cat /etc/os-release |grep ^VERSION_ID=|cut -f2 -d'"'|cut -f1 -d'.'
8
\\
=== Get the minor version ===
cat /etc/os-release |grep ^VERSION_ID=|cut -f2 -d'"'|cut -f2 -d'.'
10