I have thousands of images. Their names is as follows:
img_1
img_2
img_3
...
img_36000
I would like to covert them into that (respectively):
img_010251
img_010252
img_010253
...
img_046250
Is there a quick solution for that in Ubuntu 18.04?
Note: The length of the numbering part must be 6! (NNNNNN)
10520
to a filename and prefix it with one leading0
? – WinEunuuchs2Unix Jun 06 '20 at 19:51s/\d+/sprintf("%06d", $&+10250)/e
– steeldriver Jun 06 '20 at 20:18