I have a script for which I pass the oracle sid as the parameter
I need to extract the version of the oracle home from the oratab.
I have tried
grep $ORACLE_SID /var/opt/oracle/oratab|grep -v \# |cut -d/ -f6|awk -F":" {'print $1'}
and get "11.1.0RMDIDES" as the output of the command, how do I just get the version like 11.1.0 as the output