regex in paths
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/" what am I doing wrong? |
Code:
skalkoto@darkstar:~$ a="/usr1/web/java/A55771/" |
Quote:
|
Quote:
And you may want to not use PATH if you don't know the function of the PATH variable in general (read the bash manual). hth --Jonas |
All times are GMT -5. The time now is 01:37 AM. |