I need to remove the part
man1/bmtoa.1.gz
from the full path
/usr/share/man/man1/bmtoa.1.gz
so that it results in
/usr/share/man/
I've tried ${path#[!/]*/*} and ${path#/*/*} but both result in wrong paths.
|
I need to remove the part
from the full path
so that it results in
I've tried ${path#[!/]*/*} and ${path#/*/*} but both result in wrong paths.
| |||
feedback
|
|
this will work | |||
|
feedback
|
|
If you could deal with
| |||
feedback
|