tag from filename on Windows and Linux

Started by wrandyr, January 09, 2011, 04:20:06 PM

Previous topic - Next topic

wrandyr

I want to batch write a text string plus a file's name to an IPTC tag. This command works for me in Windows:
exiftool "-IPTC:source<Disc 1_$filename" *.tif

Trying to do the same thing in Linux fails, unless the file name is the only thing written. So this works
exiftool "-IPTC:source<filename" .
but I could not come up with anything that would write the two things together.

Does anyone know the cross-OS trick to do this?

Phil Harvey

In Linux you need to use single quotes instead of double quotes around arguments containing a '$' symbol.

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

wrandyr

Thank you, that is exactly the missing piece I needed.