![]() |
|
|
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 |
| Executing Commands From Non-Standard Path (Changing user's PATH secretely???) | ramesh_samane | Shell Programming and Scripting | 2 | 08-30-2009 07:44 PM |
| fnsplit, Extract filename from path | Festus Hagen | Shell Programming and Scripting | 5 | 08-22-2009 10:24 PM |
| Extract directory from a file path | mrudula009 | Shell Programming and Scripting | 4 | 06-10-2009 02:48 AM |
| Extract The File Path using SED | Diggi | Shell Programming and Scripting | 10 | 03-03-2009 02:06 AM |
| tar extract to new path | jouuu | UNIX for Dummies Questions & Answers | 1 | 02-12-2009 03:41 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Extract path within path
Hi, I have a environmental variables, Code:
ORACLE_HOME=/u01/oracle/ORCL/db/tech/10.2.0 ORACLE_SID=ORCL Now I need to create a variable and need to extract some part from ORACLE_HOME. I need to get the path from ORACLE_HOME till ORACLE_SID as /u01/oracle/ORCL. I may need to check also the first occurance of ORCL in the whole path. Can anybody suggest the best way to do it nawk or cut or substing. Please advice. Thanks and Regards, Sreejit |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|