![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Migrate unix version 8 to version 9 | lsy | SUN Solaris | 2 | 09-16-2008 02:00 AM |
| extract using sed/awk - need help? Please!! | gzs553 | Shell Programming and Scripting | 5 | 10-08-2007 05:54 PM |
| tar. I can't extract | volleyboy | UNIX for Dummies Questions & Answers | 1 | 02-17-2006 11:54 AM |
| UFS Version | RajaRC | SUN Solaris | 1 | 07-02-2004 05:14 AM |
| version of OS | tselvanin | UNIX for Dummies Questions & Answers | 4 | 10-07-2003 11:26 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
My oratab has the following contents
RMD10203:/u01/app/oracle/product/10.2.0RMD10203:Y RMDIDEVL:/u01/app/oracle/product/11.1.0RMDIDEVL:Y RMDIDES:/u01/app/oracle/product/11.1.0RMDIDES:Y 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 Thanks in advance,AK |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|