Find duplicates without case sensivity

Started by Fulco, October 29, 2018, 07:56:46 AM

Previous topic - Next topic

Fulco

This command prints the keywords and subject of files with duplicate keywords or subject (for example Bird, Bird):

exiftool -if '${Keywords;NoDups(1)} or ${Subject;NoDups(1)}' -p '$keywords' -p '$subject'

It does however not print duplicate keywords/subject with a different letter case (for example Bird, bird).

Is it also possible to print duplicates without case sensivity?

Thanks for any suggestions.

- Fulco

Phil Harvey

Hi Fulco,

This should do it:

exiftool -if '${Keywords;$_=lc;NoDups(1)} or ${Subject;$_=lc;NoDups(1)}' -p '$keywords' -p '$subject'

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Fulco