extract xml from a large text file then write it to a new file
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.
Please do not cross-post, it is against the LQ rules.
If you think you created your original post in the wrong forum, ask a moderator to move it.
I will, sorry,
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
|All times are GMT -5. The time now is 08:08 AM.|