Image-ExifTool - Re: Linebreak in 0x010e Image Description

Posted on Thu Jul 17 02:59:16 2008 by exiftool in response to 8335 (See the whole thread of 7)
Re: Linebreak in 0x010e Image Description
Oh yeah. "linuxuser" is linux. Silly me. :P

I just tried a bunch of shells (sh, csh, bash, zsh), and of these the backslash at the end of a line only adds a newline in csh. But the good news is that I played around a bit in bash and it is even easier -- you can insert an actual newline in a quoted string:

#!/bin/bash descr="line1 line2" exiftool -imagedescription="$descr" image.jpg

The above bash script works for me, but of course you need to use the -b option to see the newline when you extract the value.

- Phil
Direct Responses: 8344 | Write a response