in reply to Re: Optimize file renaming.in thread Optimize file renaming.
$ echo '1.png' | perl -lpe '$_=sprintf "%07d", $_' 0000001 [download]