Print absolute filename (or at least relative to the starting point)

Started by Archive, May 12, 2010, 08:54:45 AM

Previous topic - Next topic

Archive

[Originally posted by aclemens on 2010-02-27 06:28:50.702745-08]

Hi,

I have images that contain some information in the comment metadata tag. I need to extract this information along with the absolute or at least relative filename (starting at the main database location).

For example running

exiftool -p '$filename,$comment' -q -f -r -ext jpg -ext jpeg -i originals .

results in

mobile_security_reset.jpg,B1,FI1,FO1

mobile_settings_delete_security_rules.jpg,0430,B1,B2

mobile_settings_properties_settings_mobile_firewall_wlan.jpg,0422,FI1,FC1,FR1.1,FR1.2

mobile_settings_properties_settings_mobile_firewall_exchange.jpg,0426,FC1

mobile_settings_properties_settings_mobile_firewall_email.jpg,0425,FC1,FC2,FC

All this information will be pasted into an Excel- or OpenOffice-Sheet. To have better sorting capabilities, I need the absolute filename instead of the plain filename,

for example

./Database/RCP/mobile_settings/mobile_security_reset.jpg,B1,FI1,FO1

Is this possible?

Archive

[Originally posted by exiftool on 2010-02-27 10:52:40.461224-08]

Does this do what you want?:

Code:
exiftool -p '$directory/$filename,$comment' -q -f -r -ext jpg -ext jpeg -i originals .

- Phil

Archive

[Originally posted by aclemens on 2010-02-28 02:20:26.670898-08]

Yes, this is working, thank you!