Hi there
I'm meating an issue with my variable in my bach script.
my variable look somthing like this:
Code:
Fullpath=../../myfile.cc
but some times i need to retrive
../../myfile.cc
and some other time i just need:
myfile
so i manage to remove the ".cc" by doing this:
Code:
echo ${Fullpath%.cc}
but how to remove "../../" ?
Thanks,
Angel.