I have a filename like a.b.c.txt, I want this string to be split as string1=a.b.cstring2=txtBasically 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?
cut string on last delimiter
shell;cut
 #For Filename echo a.b.c.txt | rev | cut -d. -f2-  | rev #For extension echo a.b.c.txt | rev | cut -d. -f1  | rev