Determine the release version of Red Hat or Rocky.
awk '{match($0, "[0-9][.][0-9]+");print substr($0,RSTART, RLENGTH)}' /etc/redhat-release