I have an issue I am trying to solve with sed. My goal is to quote a the content after content= if the content is not already quoted.
Here is the concrete example:
<meta name="ProgId" content=Word.Document>
<meta name="Generator" content="Microsoft Word 15">
I would like to add quotes around Word.Document so at the end have:
<meta name="ProgId" content="Word.Document">
<meta name="Generator" content="Microsoft Word 15">
I was trying with
sed -i 's@content="\(.*\)"@content="\1"/@g' "$1"
However this is not working.
Thank you.
content="There is no", so why match it?