I have a rather clumsy and inefficient way to do this with
find, etc., but maybe there's a better way …
I have more than 24 thousand images, from several different devices. I'd like to make lists of those that have GPS tags and those that don't. Or one list with each identified as having or not. And either at the same time or in a separate job, to reverse geocode a description of the location in an exif comment for those that have GPS.
Apple's Photos app sorts them by location but it keeps that info separate from the photo. (And it currently crashes my laptop when I try to open the app)
LibreOffice Calc can handle more than 24K rows but I've seen its performance go to crap with large amounts of data. same for TextEdit. So I'll likely run the thing non-recursive in each directory. My "clumsy method" would take advantage of the fact that
exiftool will leave the GPSDateTime field blank when no GPS data. I didn't know about the -if option—I'll have to look into that.
It was clumsy because I thought I would have to run each file to a temp file of tags, check for GPS in the temp file, and then do something with the image file based on that. So that is alleviated by the ability to put multiple files in one CSV list. But then I have further actions to take with the list, and that's daunting with more than three thousand directories.