I am trying to write a Unix Shell Script command that would clean up the XML files by eliminating spaces between the nodes...example:
<PERSON>
<NAME>James</NAME>
</PERSON>
the command has to make:
<PERSON><NAME>James</NAME></PERSON>
That will probably work, thanks. It actually should scan and edit xml files in a specified directory, then copy them into another dir preserving all the subderictory structure...something like this, but only it should work lol
sed -e "s/\s+|^&//g" c:\XMLCleanup\*.xml > c:\XMLFinal\*.xml
i knew it would be tricky lol I have done this long time ago, I think i captured the ls output and then grabbed names and tested them...grrrr if u have example of this please send. thanks.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.