Skip to main content

New answers tagged

0 votes

Use sed to insert a character in an xml file

Assuming a well-formed XML document, like this: <?xml version="1.0"?> <root xmlns:type="uri://something/type"> <type:color>000000</type:color> <type:...
Kusalananda's user avatar
  • 339k
2 votes
Accepted

Use sed to insert a character in an xml file

This looks to be pretty simple: cat - << EOF | <type:color>000000</type:color> <type:color>FFFFFF</type:color> EOF sed 's/<type:color>/<type:color>#/' Or ...
user1683793's user avatar

Top 50 recent answers are included