ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: z_vr on November 27, 2016, 12:54:33 PM

Title: Sending new line in stay_open True
Post by: z_vr on November 27, 2016, 12:54:33 PM
Hello,

I was wondering if it was possible to write a tag with new line in -stay_open True without first writing it to a file, and then doing -comment<=file.txt? http://www.exiftool.org/faq.html#Q21 (http://www.exiftool.org/faq.html#Q21) stays it's either this method, or doing exiftool '-comment<line 1$/line 2' image.jpg. I don't want to use the first one because it will use IO and be slow, and second one because I don't want to manipulate string by replacing \n with $/ and also in FAQ it says it might be slower. Any other options for me here? Thanks.
Title: Re: Sending new line in stay_open True
Post by: Phil Harvey on November 27, 2016, 04:41:15 PM
If I understand, you are reading arguments from an argfile and you want to read an argument containing a newline without escaping the newline in any way.

Not possible.

The newline character is the delimiter in the argfile, so you can't use it in an argument.

- Phil