Replace space separator to comma

Started by ichigo, February 13, 2020, 06:56:47 PM

Previous topic - Next topic

ichigo

Hello!

I want to replace the space separator to comma.

The tags were like "tag1 tag2 tag3" but I want it to be like "tag1,tag2,tag3"

I tried to search my best, and I tried this from butchering one of results but I got "Exiftool is not a win32 software" so I guess I did something brutally wrong. ;)

The base command is:

E:\process\exiftool -tagsfromfile 000001.jpg.json "-Keyword
s<Tags" "E:\Process\2007a\000001.jpg"

Adding -sep " " would remove the spaces I know. But to replace it with comma I do not know how.

I am sorry for nagging you.

StarGeek

The -sep option is what you want to use, specifically the -sep " "

Keywords is not a comma separated string.  It is a list type tag.  That means each entry is completely separate from the others.  So if the item you're copying from is "tag1 tag2 tag3", then using the -sep " " option would make it
tag1
tag2
tag3
Each item completely separated from the other.

See FAQ #17 for more details.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

ichigo

You are right.

I thought the software I am using needed it to be separated by comma as it is how I would have to type when  I add new ones, but apparently it reads the new line-separated just fine.

So "nevermind" basically.  ;)

Thank you.