I have a filename like a.b.c.txt, I want this string to be split as
string1=a.b.c
string2=txt
Basically I want to split filename and its extension. I used cut but it splits as a,b,c and txt. I want to cut the string on the last delimiter.
Can somebody help?