i have some xml files in linux
a="xx
xx
xx"
b="y
y
y"
How to replace the content and becomes
a="xx\n\xx\nxx"
b="y
y
y"
where attribute b is not replace
i have try this but how to support multi files and replace the attribute "a" only using sed or awk command; (not use xslt)
sed ':a;N;$!ba;s/\n/\\n/g' abc.xml