+ # TAG=$(exif --ifd=EXIF -t "Date and Time (original)" "${ref}" | grep Value)
+
+ # if [[ ${TAG} ]]; then
+ # TIMESTAMP=$(echo ${TAG} | sed -e \
+ # "s/^ *Value: *\([0-9]*\):\([0-9]*\):\([0-9]*\) *\([0-9]*\):\([0-9]*\):\([0-9]*\).*$/\1\2\3\4\5.\6/")
+ # touch -t $TIMESTAMP "$i"
+ # else
+ # echo "No exif tag in $i, can not set the date properly."
+ # fi
+