I have an XML file which has occasional lines that are split into 2: the first line ending with
. I want to concatenate any such lines and remove the
, perhaps replacing it with a space.
e.g.
<message>hi I am
here </message>
needs to become
<message>hi I am here </message>
I've tried:
sed -i 's/ \/n/ /g' filename
with no luck.
Any help is much appreciated!