rename multiple files with wildcards

Hi All

I am having hundred over file in the below pattern.

AA050101.INI  
BB090101.INI
.
.
ZX980101.INI

Need to rename these files with an extension .bak

AA050101.INI.bak  
BB090101.INI.bak
.
.
ZX980101.INI.bak

only first 4 digits are variant

i tried using mv ????0101.INI ????0101.INI.bak, but unable to do so.

Kindly suggest

Thanks with anticipation

I would suggest a for loop, but what shell are you using so we can provide the correct syntax for your script?

HI,

mv *0101.INI *0101.INI.BAK

Or

ls ????0101.INI | xargs -I{} mv {} {}.bak
for file in ????0101.INI
do
  mv "$file" "$file.bak"
done

Lot of good solutions !!

But which solved your issue !! & What is the problem ?!