ExifTool Forum

ExifTool => Developers => Topic started by: Curtis on October 21, 2015, 12:37:55 PM

Title: CrLF in Tag values
Post by: Curtis on October 21, 2015, 12:37:55 PM
I'm using -stay_open in my program to send commands to exiftool. 

When I write a tag whose value contains CrLf (or just Cr or Lf) how do I escape them in the command input file?  I tried surrounding the whole value with " " but that did not work.

I'm not using -struct, but would I escape these characters the same as for -struct tag values using '|' ? (that does not seem to work)

Thanks!
Curtis
Title: Re: CrLF in Tag values
Post by: Phil Harvey on October 21, 2015, 02:59:51 PM
Hi Curtis,

The newline is used as a separator for the -@ option, so you can't send one directly.  However, see FAQ 21 (https://exiftool.org/faq.html#Q21) examples b, c and d are ways around this.

- Phil
Title: Re: CrLF in Tag values
Post by: Curtis on October 21, 2015, 05:44:27 PM
 :)  Thanks Phil that did the trick!