News:

2023-03-15 Major improvements to the new Geolocation feature

Main Menu

combine commands

Started by j99mac, July 08, 2014, 06:00:11 PM

Previous topic - Next topic

j99mac

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

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

j99mac

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?

Phil Harvey

This command will only overwrite the Make and Model tags, but you should read FAQ 8.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).