Hi,
in a shell program I have a string in a variable say
a="/opt/casp/asp-server-3000"
now I need to extract asp-server-3000 from this,I mean I need the part of string which comes after the last slash / in the string a.
How can i do this using awk or grep etc etc.
I need the exact command pl.