How can I use sed to insert a character into a file?

Liste des GroupesRevenir à ol misc 
Sujet : How can I use sed to insert a character into a file?
De : nonesuch (at) *nospam* nottodaynortomorroreither.org (Jon Danniken)
Groupes : comp.os.linux.misc
Date : 08. Jul 2024, 20:44:54
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v6hc36$vv1m$1@dont-email.me>
User-Agent : Mozilla Thunderbird
I'm sure this is trivial to most here, but sed confounds me.  I have an xml file with content following this format:
<type:color>000000</type:color>
<type:color>FFFFFF</type:color>
The information within the tags are hex colors (many different colors), but they need to begin with a pound sign (#) to work in a particular application, ie:
<type:color>#000000</type:color>
<type:color>#FFFFFF</type:color>
How can I use sed to append the pound symbol in this file? Using sed 4.8 BTW, thanks!

Date Sujet#  Auteur
8 Jul 24 * How can I use sed to insert a character into a file?4Jon Danniken
8 Jul 24 +- Re: How can I use sed to insert a character into a file?1Nuno Silva
8 Jul 24 `* Re: How can I use sed to insert a character into a file?2Thomas Zajic
8 Jul 24  `- Re: How can I use sed to insert a character into a file?1Jon Danniken

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal