I have basically splitted one file into 8 files.DA_TRP_TOTAL-SHIPPED_v1_DNH_2_2_20170502094536.dat  #Original FileI got 8 new files as below filename.DA_TRP_TOTAL-SHIPPED_v1_DNH_2_2_20170502094536.dat.aaDA_TRP_TOTAL-SHIPPED_v1_DNH_2_2_20170502094536.dat.abDA_TRP_TOTAL-SHIPPED_v1_DNH_2_2_20170502094536.dat.acDA_TRP_TOTAL-SHIPPED_v1_DNH_2_2_20170502094536.dat.adDA_TRP_TOTAL-SHIPPED_v1_DNH_2_2_20170502094536.dat.aeDA_TRP_TOTAL-SHIPPED_v1_DNH_2_2_20170502094536.dat.afDA_TRP_TOTAL-SHIPPED_v1_DNH_2_2_20170502094536.dat.agDA_TRP_TOTAL-SHIPPED_v1_DNH_2_2_20170502094536.dat.ahI want to rename these files as below name:DA_TRP_TOTAL-SHIPPED_v1_DNH_1_8_20170502094536.datDA_TRP_TOTAL-SHIPPED_v1_DNH_2_8_20170502094536.datDA_TRP_TOTAL-SHIPPED_v1_DNH_3_8_20170502094536.datDA_TRP_TOTAL-SHIPPED_v1_DNH_4_8_20170502094536.datDA_TRP_TOTAL-SHIPPED_v1_DNH_5_8_20170502094536.datDA_TRP_TOTAL-SHIPPED_v1_DNH_6_8_20170502094536.datDA_TRP_TOTAL-SHIPPED_v1_DNH_7_8_20170502094536.datDA_TRP_TOTAL-SHIPPED_v1_DNH_8_8_20170502094536.datHow can I do it in unix shell scripting?
How to rename multiple files by replacing string in file name?
scripting;rename