This lists files in order by creation time (newest first, add -r to ls to ...
I can't think of a solution that handles incrementing the counter in a more clever way, but this should work: i=0 for fi in abc_??????.png; do mv "$fi" abc_$i.png ...
If you don't want padding at all--even though that would make your files appear in non- numeric order when you list
REName with Numbers - a .sh (dash; bash; zsh - compatible) rename script ...
the files since you downloaded them, you won't get an accurate ordering .
Sort by date modified, highlight all images, right-click first image, and hit rename. Type the name such as test and they will rename in order ...
In the directory containing the pictures, run: mkdir renamed; num=0; for f in $(ls -t ); do cp -p "$f" renamed/IMG_$(printf "%03d" $num).jpg; num=$((num+1)); done.
It will produce filenames which are ordered numerically and left-padded with zeroes; if you have a directory with a thousand files in it, you'll get names ranging ...
Create a .bsh file inside the directory in which your images are stored and paste the below code : #!/bin/bash count=1 for file in *.jpg do ...
You can save it as a normal text file and then run bash /path/to/script.sh from Terminal. Remove the echo to actually rename the files.