ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: instigator on November 29, 2010, 09:54:49 AM

Title: combine commands
Post by: instigator on November 29, 2010, 09:54:49 AM
How can I join this two commands into one single line?
exiftool -IPTC:keywords+={$keyword} -overwrite_original prueba.jpg  
exiftool "-Exif:copyright<${keywords}" -overwrite_original prueba.jpg
so exiftool don't run two times.
Title: Re: combine commands
Post by: Phil Harvey on November 29, 2010, 10:17:13 AM
exiftool -IPTC:keywords+={$keyword} "-Exif:copyright<${keywords}, {$keyword}" -overwrite_original prueba.jpg

- Phil
Title: Re: combine commands
Post by: instigator on November 29, 2010, 10:24:52 AM
Thanks.
And other question
Can I add a keyword(example: "word") only if "word" is not already a keyword?
Title: Re: combine commands
Post by: Phil Harvey on November 29, 2010, 10:40:18 AM
Quote from: instigator on November 29, 2010, 10:24:52 AM
Can I add a keyword(example: "word") only if "word" is not already a keyword?

Yes.  There is a not-very-intuitive yet obvious-by-hindsight technique for doing this which is mentioned in FAQ number 17 (https://exiftool.org/faq.html#Q17).

- Phil