sed question

Olaf Grüttner olaf.gruettner at web.de
Wed Jan 30 12:51:56 PST 2008


Hi everyone,

I have a question about working with sed. 
I have an xml file containing
<theme>1</theme>

I want to change this to 
<theme>2</theme>
       
I have problems with the "<" and ">" signs. Is there a was to mask them
in the sed command?

sed s/"<theme>1</theme>"/"<theme>2</theme>"/g' test.xml

does not work

Greetings
Olaf




More information about the blfs-support mailing list