Lucky for my is that Phil Harvey is a smart and generous person: he created exiftool and gave it to the world! This enabled me to write this little script to modify the date of all my image files to the data provided in the standard EXIF data.
for f in $(/usr/bin/find . | egrep -i "\.jpg"); do echo "$f"; SNAP_DATE=`exiftool "$f" | egrep "^Create Date" | awk '{print $4,$5}' | sed 's/ //g;s/://;s/://;s/://;s/:/\./' | awk '{print substr($1, 1, 15)'}`; echo "$SNAP_DATE -> $f"; touch -t $SNAP_DATE "$f"; doneThanks Phil...
No comments:
Post a Comment