Author Topic: Get multiple tag values with Perl expressions on same line?  (Read 1053 times)


  • Newbie
  • *
  • Posts: 1

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:

Code: [Select]
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?


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

Code: [Select]
exiftool.exe -p "${FileName}" ${ImageDescription;s/=.*\n/\",\"/g}" image.tiff
This topic can be closed, sorry about that!