I have a really easy problem that I am not able to solve quickly. I must extract a substring from something like this:
a="www.himom.com/byebye"
I want to retrieve this:
"/byebye"
Actually, I am able to retrieve
"www.himom.com" with
echo ${a%/*}
Any suggestions?