Get multiple tag values with Perl expressions on same line?

Started by andee, July 05, 2016, 02:41:29 PM

Previous topic - Next topic

andee

Hi,

I am trying to extract two tag values from a file, and I want to use Perl expressions to change one of the values.  The problem is I want them both on the same line, but there is a newline character after the first tag value.  Here is what I tried:

exiftool.exe -p "${FileName}" -p "${ImageDescription;s/=.*\n/\",\"/g}" image.tiff

Is there a way I can output the FileName and ImageDescription values without a newline character in between?

Thanks

Edit: I just figured it out... it's

exiftool.exe -p "${FileName}" ${ImageDescription;s/=.*\n/\",\"/g}" image.tiff

This topic can be closed, sorry about that!