ExifTool Forum

ExifTool => Newbies => Topic started by: Alex Matiash on August 29, 2018, 01:00:09 PM

Title: how to write space delimited values to one tag using -@ ?
Post by: Alex Matiash on August 29, 2018, 01:00:09 PM
Hi all.
I'm stuck with some problem I can't understand:
exiftool -overwrite_original -ColorMatrix1="3.1338561 -1.6168667 -0.4906146 -0.9787684  1.9161415  0.0334540 0.0719453 -0.2289914 1.4052427" file

works perfectly, but

exiftool.exe -@ replace_color_profile_in_DNG.txt file

says:
Warning: Not a floating point number for IFD0:ColorMatrix1
    0 image files updated
    1 image files unchanged


Content of replace_color_profile_in_DNG.txt is the same as in full command line:
-overwrite_original
-ColorMatrix1="3.1338561 -1.6168667 -0.4906146 -0.9787684  1.9161415  0.0334540 0.0719453 -0.2289914 1.4052427"


How can I set value with spaces to one tag in arguments file?
Thank you in advance.
Title: Re: how to write space delimited values to one tag using -@ ?
Post by: StarGeek on August 29, 2018, 02:20:24 PM
From the docs on the -@ option (https://exiftool.org/exiftool_pod.html#Other-options):
"Normal shell processing of arguments is not performed, which among other things means that arguments should not be quoted and spaces are treated as any other character."

tl;dr Remove the quotes
Title: Re: how to write space delimited values to one tag using -@ ?
Post by: Alex Matiash on August 29, 2018, 03:59:33 PM
Quote from: StarGeek on August 29, 2018, 02:20:24 PM
From the docs on the -@ option (https://exiftool.org/exiftool_pod.html#Other-options):
"Normal shell processing of arguments is not performed, which among other things means that arguments should not be quoted and spaces are treated as any other character."

tl;dr Remove the quotes
Oh, thank you very much!