How to set the values of two different tags as the value for a third tag?

Started by hacksenwerk, February 07, 2022, 06:12:57 PM

Previous topic - Next topic

hacksenwerk


StarGeek

With a space between
exiftool "-TAG3<$TAG1 $TAG2" /path/to/files/

If you want to use an underscore, then you have to add braces to the first tag, so exiftool doesn't think the underscore is part of the tag name.
exiftool "-TAG3<${TAG1}_$TAG2" /path/to/files/

If this command is run under Unix/Mac, swap the double quotes for single quotes to avoid bash interpretation.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

hacksenwerk

Thank you very much StarGeek.

It is funny I was struggling arround with try and error till I got to this:
exiftool "-TAG3<$(TAG1)$(TAG2)" foobar
So close and so far away...
;)

Regards