What you're trying to do is
parameter expansion - substrings (yeah, yet another strange name for something). The general form is
Code:
${parameter#pattern} remove small left pattern
${parameter##pattern} remove large left pattern
${parameter%pattern} remove small right pattern
${parameter%%pattern} remove large right pattern
So,
Code:
InterfacFile=/law/t803/law/test/interface/smsptrf/rfdc0xk_0418152945
print ${InterfacFile##*/}
Produces
The trick is the "##*/"
Hope this helps