selecting only the required portion of string in a line
I have n files like this.....
I want a command for getting only 4hmg_c.pdb ; 5hmg_a.pdb ; 5hmg_e.pdb
(i.e the letters after the third "-" but before ".txt")
SO that i can put the code in loop for n entries......for sample I have just pasted 3 entries......