At its best with some delimiter like an underline.
Regards
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.
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