I have a photo directory with hundreds of files named in the format:
I wish to keep the first 10 characters (date) and append "-001", etc. being consecutive for each date.
The output would be:
2013-08-02-001.jpg 2013-08-02-002.jpg 2013-08-03-001.jpg
I then plan to resize the jpg's using something like:
for file in *.jpg; do convert $file -resize 900x900\> 900x900-$file; done