i'm trying to get a certain part of the path into a var.
lets say I have the following path:
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:
MYDIR=`$PATH | sed s/"$BASE"//g`
MYDIR should hold "A55771/".
what am I doing wrong?