Thread

Posted on Mon Oct 6 21:27:42 2008 by downed
Command Line Output
Hi Everyone:

Having some issues with simple output. Not sure what I'm missing. Trying to output with -T but it doesn't display the tag names:
Command:

exiftool -XMP-Marcom:* IMG_000462.JPG -T

Output:
_____________________________________
Logo Nope 2008-10-03 FPO Shuffle Dutch, English open source Sweet Pooch aaaajx United States 2008-09-03 Current MGM Asia/Pac South America
_____________________________________


Also trying just -t

Command:

exiftool -XMP-Marcom:* IMG_000462.JPG -t

Command:

exiftool -XMP-Marcom:* IMG_000462.JPG -t

Output:

_____________________________________
Content Logo
Content Parameters Nope
End Date 2008-10-03
Expiration Date --
Image Type FPO
Keywords Shuffle
Language Dutch, English
Legal Lines open source
Notes Sweet Pooch
Project Number aaaajx
Region United States
Shoot Date --
Start Date 2008-09-03
Status Current
Studio MGM
Territory Asia/Pac South America
_____________________________________

This is not a single output. How do I get the tabbed format for database insert with the tag names.


Thanks,

Ryan
Direct Responses: 8979 | Write a response
Posted on Mon Oct 6 21:51:49 2008 by exiftool in response to 8978
Re: Command Line Output
Hi Ryan,

Currently, the single line output is value only. When you add the tag names, newlines are inserted between the tags. I did it this way because otherwise it would be too easy to get confused between the tag names and the values.

I am planning an XML option for the next release, perhaps this would help if you can read this format. (see the "XML output option" thread for the gory details.)

- Phil
Direct Responses: 8980 | Write a response
Posted on Mon Oct 6 22:42:48 2008 by downed in response to 8979
Re: Command Line Output
Hi Phil: Yes I saw the XML output thread. Its a little more than I really need. I did see that the output did have newlines between values however when trying to assign the result output to a variable it only captures the last line. Which is of no help. Thanks for the quick response. Ryan
Direct Responses: 8982 | Write a response
Posted on Tue Oct 7 00:43:05 2008 by exiftool in response to 8980
Re: Command Line Output
OK. Well there is are other options... If you are running the Perl version, you could write a simple script to output in any format you want. Or you pipe through a filter to translate the newlines into something else (like 'sed' for instance).

- Phil
Write a response