How to remove single apostrophe ' from Description tag?

Started by bartek, March 02, 2024, 02:42:13 PM

Previous topic - Next topic

bartek

Hi I'm trying to remove ' (single apostrophe) from Description tag, but can't get it to work.

Can you please help?

Thanks in advance.

Btw. I'm on Windows 11 if that matters ;)

Phil Harvey

Try this (in a CMD shell):

exiftool "-description<${description;s/'//g}" FILE

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

bartek

Hello Phil, Thanks for your reply. The command works perfectly fine on my Windows 10 pc, but on another computer with Windows 11 I get this message:

Warning: No writable tags set from bfom.jpg

Why is that?

StarGeek

Are you using CMD or Powershell?  The above command is for CMD.  Powershell has different quoting rules, which you should see by the different color highlighting in the command.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

bartek

Quote from: StarGeek on March 04, 2024, 03:36:20 PMAre you using CMD or Powershell?  The above command is for CMD.  Powershell has different quoting rules, which you should see by the different color highlighting in the command.
oh, you're right! Thanks a lot, I didn't realize there's a difference. On cmd it works as it should :)