I have xml files in linux
a="xx xx xx" b="y y y"
How to replace content and becomes
a="xx\n\xx\nxx" b="y y y"
where the attribute b does not replace
I tried this, but how to maintain multiple files and replace the “a” attribute only with the sed or awk command; (do not use xslt)
sed ':a;N;$!ba;s/\n/\\n/g' abc.xml
source share