ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: plantguy123 on February 21, 2020, 03:55:22 PM

Title: Command to sort photos in directory by "shooting mode"?
Post by: plantguy123 on February 21, 2020, 03:55:22 PM
I have a directory of photos. For the "Shooting Mode" metadata item, most have "Delay, PC Control", while some only have "PC Control". What exiftool command would I use to move all photos without "Delay" to a different directory? Thanks.
Title: Re: Command to sort photos in directory by "shooting mode"?
Post by: StarGeek on February 21, 2020, 04:12:40 PM
I'm unfamiliar with the "Shooting Mode" tag, so I can't give an exact command.  You need to get the actual tag name with
exiftool -G1 -a -s File.jpg

Once you figure out the name, replace TAG with that in this command
exiftool -if "$TAG!~/Delay/i" "-Directory=/path/to/new/directory/"
Title: Re: Command to sort photos in directory by "shooting mode"?
Post by: plantguy123 on February 23, 2020, 03:46:37 PM
great, thanks a lot!