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.miscDate : 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!