Part of a string

Hi mates,

I am doing a script in ksh. I have the following string:

/opt/one/two/four/five/myFile.txt

And I have a variable:

echo "${variable}" -> /opt/one/two/

I would like to have just the string: four/five/myFile.txt

What is the better way to do that?

Thanks in advance!.

file=/opt/one/two/four/five/myFile.txt
echo ${file#${variable}}

Thanks anbu23, I'm going to test it.

Thanks again!

---------- Post updated at 04:11 AM ---------- Previous update was at 12:37 AM ----------

Hi,

First of all thanks for your help. The script is working perfectly.

Where can I learn more about this kind of expressions?

Thanks in advance.

Advanced Bash-Scripting Guide