# Increment file number using zmv

batch-renamerenamezsh

I have a set of files that are named in the vein of "some_file-nameN", where N is a number starting at 1, incrementing, and ending somewhere between 10 and 30. I now need to insert a file at the start. How can I increment the number of the file using ZMV and ZSH?

for n in {30..1};
mv some_file-name$n some_file-name$(( \$n+1 ))