ExifTool Forum

ExifTool => Newbies => Topic started by: j99mac on July 08, 2014, 06:00:11 PM

Title: combine commands
Post by: j99mac on July 08, 2014, 06:00:11 PM
I am making a script that will change the make and device model.
This is the script I have so far. When I run the script the device model dose not change.
Is another way to combine the commands?

#!/bin/bash
     exiftool -Make="Fujitsu" /image
     exiftool -device model="fi-5900C" /image
echo "Done"

exiftool "/image" exiftool -Make -Model
Title: Re: combine commands
Post by: Phil Harvey on July 08, 2014, 06:32:28 PM
You may combine any number of assignments into a single command.  In your case:

exiftool -make="Fujitsu" -model="fi-5900C" /image

I have also fixed your model assignment.

- Phil
Title: Re: combine commands
Post by: j99mac on July 08, 2014, 06:41:02 PM
Thanks for getting back to me so fast with an answer.
I will try tomarrow and it should do what I need
Also dose it over right what is already there, witch is what it am looking todo?
Title: Re: combine commands
Post by: Phil Harvey on July 08, 2014, 07:14:21 PM
This command will only overwrite the Make and Model tags, but you should read FAQ 8 (https://exiftool.org/faq.html#Q8).

- Phil