function imgwoexif () ( function _has_exif () { file=$1 current_exif=$(exiftool -DateTimeOriginal ${file}) if [ -z $current_exif ]; then echo "Exif DateTimeOriginal not found for ${file}" fi } for f in $@; do _has_exif ${f} done )