I am trying to rename a set of files. The files have this form
frame\[d]+_object.bin
I have files numberes from 1 to 1500, and I want to rename only the ones between 100 and 199
I have tried the following rename
command
rename -n 's/frame1[\d]{2}_/sprintf("%05d", $&)/e' *.bin
adapting other command I was using for other purposes, but the output is
frame198_simobject0.bin -> 00000simobject0.bin
frame199_simobject0.bin -> 00000simobject0.bin
I don't really understand how the substitution rule for the command is working, so some help here would be very useful.