News:

2023-03-15 Major improvements to the new Geolocation feature

Main Menu

'>' character treated as unix redirect in list tag

Started by Tr, February 21, 2014, 05:18:25 PM

Previous topic - Next topic

Tr

Hello:

We are ingesting headers using -csv, modifying cell values, then writing the csv into the headers.  When a '>' character is added as content to an value in a ';' delimited list, it is treated as a unix file redirect and creates a bogus file on disk. 

For this list value below, a file called 'Dark' is created when we write the csv back into the image headers:

C.2.;X.Nebula > Dark

Note: string tag values does not have this issue.  It seems to only affect the list/array tags.

Thanks for any assistance.


Phil Harvey

This works for me:

> cat t1
SourceFile,Keywords
a.jpg,"a;b > c"

> exiftool a.jpg -csv=t1 -sep ";"
    1 image files updated

> exiftool a.jpg -keywords
Keywords                        : a, b > c


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

Tr