i just had a concern cross my mind... not sure if it holds any weight, and i'm not sure how to test it...
if there were a couple hundred images in the directory (say 300), and you did the above script, once it finished renaming the ones listed, what's to keep it from continueing on and renaming file #1 to file #301 etc.?
:: update ::
well... i tested it with 100 files, no problems from above...
but something else came up... in the line:
Code:
mv $i $n.jpg;
it would be best to have:
Code:
mv "$i" "${n}.jpg";
that way if any files have a space in the name, it won't error
