hi
i'm trying to get a certain part of the path into a var.
lets say I have the following path:
/usr1/web/java/A55771/
the "/usr1/web/java/" part will always be the same, what I am looking for is the "A55771" part. (this part might be "B66-154-89" in a different case)
so I did this:
Code:
PATH="/usr1/web/java/A55771/"
BASE="/usr1/web/java/"
MYDIR=`$PATH | sed s/"$BASE"//g`
MYDIR should hold "A55771/".
what am I doing wrong?