#!/usr/bin/env bash shopt -s extglob for f in !(*.xmp) ; do echo $f git annex metadata $f --set exif="$(exiftool -S \ -filename \ -filetypeextensions \ -make \ -model \ -lensid \ -focallength \ -fnumber \ -iso $f)" done