Hi,
I remember once seeing a way to get the left most string in a word.
Let's say: a="First.Second.Third" (separated by dot)
echo ${a#.} shows --> Second.Third
echo ${a##.} shows --> Third
How do I get the the left most string "First" Or "First.Second" ???
Tried to replace # with + , but it doesn't work.
Can anyone help me?
Thanks,
Joao.