4 for f in *.jpg *.JPG; do
7 info="$(exiv2 -Pnv "$f")"
8 # copy tags to IPTC description (sigal)
9 tags=$(echo "$info" | sed -n 's/^subject *//p' | tr '[:upper:]' '[:lower:]')
10 if [ -n "$tags" ]; then
11 exiv2 -M"add Iptc.Application2.Caption String $tags" mo "$f"
14 # rename to EXIF date, if available
15 if echo "$info" | grep -q '^DateTime'; then