如何将文件列表重命名为部分相同名称加上扩展名前的编号序列

如何将文件列表重命名为部分相同名称加上扩展名前的编号序列
mv MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_P1_1.csv ../MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_1.csv
mv MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_P2_1.csv ../MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_2.csv
mv MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_P2_2.csv ../MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_3.csv
mv MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_P2_3.csv ../MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_4.csv
mv MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_P2_4.csv ../MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_5.csv
mv MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_P3_1.csv ../MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_6.csv
mv MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_P3_2.csv ../MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_7.csv
mv MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_P3_3.csv ../MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_8.csv
mv MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_P3_4.csv ../MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_9.csv
mv MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_P3_5.csv ../MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_10.csv
mv MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_P3_6.csv ../MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_11.csv

相关内容