Hi all,
how to change the path easily from
/u01/oracle/oradata/newdb/tab >cd olddb
/u01/oracle/oradata/olddb/tab >
or
/u01/oracle/oradata/newdb/tab >cd u05
/u05/oracle/oradata/newdb/tab >
I am lazy for typing the abs. path again...
As I know there is some "tips" in doing this.
Thanks in advance
Lakris
2
Hi, I guess this isn't water proof, but You could try something like this, using shell substitution (in bash not sure about ksh or others),
cd ${PWD/newdb/olddb}
cd ${PWD/u01/u05}
but as You can see, is could easily happen that strings match in more than one place...
Best regards,
Lakris