I have string say,
a="abc_def ghi__333_31122013_Monthly.pdf"
I need the substract monthly and 31122013 from the above string in shell script. Basically doing substring from last till the first index of '_'.
Any help or suggestion is welcome.
Navdeep