This is my problem: I have a folder with 500 images named:
1.jpg 2.jpg 3.jpg
and so on..
I copied that folder and now I need to rename those same pictures from 501 to 1000 but in order like this:
1.jpg becomes 501.jpg 2.jpg becomes 502.jpg 3.jpg becomes 503.jpg ....
When I use my standard renaming command:
i=501;for img in $(find . -iname '*.jpg'); do echo -n "Converting $img"; mv $img $i.jpg && echo $i && ((i++)); done
It orders images from 501 to 1000 but they are all scattered:
23.jpg becomes 501.jpg, 66.jpg becomes 502.jpg ...
(they are in right order, but it mixes them up)
I know it's probably one command I'm missing...