|
extract xml from a large text file then write it to a new file
Hello,
I have a huge text file generated from our system and i need a script that asks the user to specify which file to open, Once the file is open, the script should extract ALL of the XML in that file ONLY and then write it to another file.
The XML needs to be extracted in to the new file, currently it is not arranged very well, so will need some line breaks once i have completed the latter.
I am pretty new to linux, iv been on a few courses but that is it. Any help would be much appreciated!
So, to sum up...
take the attached as input
invoke a script
get an xml file from the script as output
Apologies for not including code, i tired using the tags but was having problems posting.
Many Thanks
|