I have several files in a direcotry such as :
BUSCO_Canis_lupus_BUSCO_v3_451441870_exon_probs.pbl
BUSCO_Canis_lupus_BUSCO_v3_45144182_metapars.cgp.cfg
BUSCO_Canis_lupus_BUSCO_v3_451441E0_weightmatrix.txt
BUSCO_Canis_lupus_BUSCO_v3_451441D0_parameters.cfg
and I would like to rename these file by removing the BUSCO_
part at the begenning and the _BUSCO_v3_Number_
part in the middle to get :
Canis_lupus_exon_probs.pbl
Canis_lupus_metapars.cgp.cfg
Canis_lupus_weightmatrix.txt
Canis_lupus_parameters.cfg
I know how to use sed and mv but not how to combine both.