Omit Tagname from output

Started by neLo, November 04, 2014, 03:21:33 PM

Previous topic - Next topic

neLo

Hello all,

if I do something like this:

exiftool -d '%e. %B %Y %H:%M' -DateTimeOriginal -lang 'de'  IMG_4300.JPG

it outputs date and time of the photo as wanted.
What I don't want is the tagname. In other words what I get is  this:


Erstellungsdatum/-uhrzeit       :  2. September 2014 10:52

and I'd like to have the "Erstellungsdatum/-uhrzeit" left out so there's just the bare date and time left.
Is it possible? How?

Thank you
neLo

Phil Harvey

Add -s -s -s or -S -s to your command to get only the tag value.  Note that if you do this for this tag the -lang option will be superfluous.

- 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 ($).

neLo

Thank you.
Now that I know it ... it works like a charm.

neLo

Phil Harvey

Oh.  I just remembered... -s3 will also do it.  (this is a bit nicer because you only need one option)

- 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 ($).

neLo

thank you ...
yes, looks a bit nicer that way.