selecting only the required portion of string in a line
Hi all,
I have n files like this.....
rot-matrix-3bwr_c.pdb-4hmg_c.pdb.txt
rot-matrix-3ckz_a.pdb-5hmg_a.pdb.txt
rot-matrix-5hmg_c.pdb-5hmg_e.pdb.txt
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......
Plz help
|