Now, I've used the following code to rename by any available timestamp in the exif information:
Code: Select all
for i in ./*.jpg; do cp $i ../final/`exiv2 -p s $i | grep timestamp | awk '{ print $4 "-" $5 }'`.jpg; done
Code: Select all
for i in *.jpg; do mv $i `exiv2 -p s $i | grep model | awk '{ print $4 }'`-$i; done
Also - is there a way to Append the info as opposed to prepend it and also skip over any errors?
Thanks