ExifTool Forum

ExifTool => Newbies => Topic started by: Chris S on April 11, 2023, 10:11:09 PM

Title: Return Tag Names as Column Headers in Tabular Format?
Post by: Chris S on April 11, 2023, 10:11:09 PM
How do I add short tag names as column headers (first row) in metadata returned in tabular format?

exiftool -T [DIR]
Title: Re: Return Tag Names as Column Headers in Tabular Format?
Post by: Phil Harvey on April 12, 2023, 06:47:25 AM
This should work as long as you don't have too many files in the directory:

exiftool -csv DIR

but will use a comma separator instead of tabs.

- Phil
Title: Re: Return Tag Names as Column Headers in Tabular Format?
Post by: StarGeek on April 12, 2023, 04:42:41 PM
The alternative if you really need tabs, would be to use the -p (-printFormat) option (https://exiftool.org/exiftool_pod.html#p-FMTFILE-or-STR--printFormat).  It would be a bit more complicated, though.
Title: Re: Return Tag Names as Column Headers in Tabular Format?
Post by: Chris S on April 12, 2023, 05:18:58 PM
-csv works for what I need, but thanks for the tip on the  -p (-printFormat) option as well.