I'll need some help with a string extraction.
My main string is a filename let's say:
sdgfj ghjsdgfjhds11.xml
I'd like to extract 5 characters before file extension, in above case this would be
hds11
Can someone please help? I'd like to have this done in bash