Author Topic: combine commands  (Read 1322 times)

j99mac

  • Full Member
  • ***
  • Posts: 35
combine commands
« 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

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16724
    • ExifTool Home Page
Re: combine commands
« Reply #1 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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

j99mac

  • Full Member
  • ***
  • Posts: 35
Re: combine commands
« Reply #2 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?

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16724
    • ExifTool Home Page
Re: combine commands
« Reply #3 on: July 08, 2014, 07:14:21 PM »
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, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).