hi,
i am trying to append some xml script to part of a file using sed, but i cannot use the < or > characters because they are special characters. i can't escape them to \< or \> either because those are also special characters. does anyone know how to append these characters? here is an example of what i need to do:
change 'Hello' to '<Greeting>Hello</Greeting>'
sed -e /Hello/a\<Greeting>Hello<\/Greeting> hello.txt > hello.xml
(the sed command obviously doesn't work)
thanks and best regards,
kevin
i am trying to append some xml script to part of a file using sed, but i cannot use the < or > characters because they are special characters. i can't escape them to \< or \> either because those are also special characters. does anyone know how to append these characters? here is an example of what i need to do:
change 'Hello' to '<Greeting>Hello</Greeting>'
sed -e /Hello/a\<Greeting>Hello<\/Greeting> hello.txt > hello.xml
(the sed command obviously doesn't work)
thanks and best regards,
kevin