Posted on 2010-02-08 11:21:24.838846-08 by louiscar
Wildcard with -tagsfromfile
I'm not sure if this is possible but this situation arises fairly often so I'm keen to try to find a way to do this as a batch.

the following works well when the source is exactly 8 chars and the destination starts with those first 8 chars.

exiftool -tagsfromfile dir1/%%8f.jpg -all:all -ext jpg dir2

This works fine if:
source: dsc-1234.jpg
destination: dsc_1234_mono.jpg or dsc_1234_anything.jpg

Ideally what I'm trying to find is a way to give the source a wild card after the %8f because the originals are not necessarily 8 chars

so if:

source: dsc_1234_morechars.jpg or dsc_1234.jpg or dsc_12345.jpg
Destination : dsc_1234_anything.jpg

Is it possible to wildcard the source so that we ignore the first 8 characters but we match anything after that?
Direct Responses: 12344 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.