Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


Closed Thread
  Search this Thread
Old 10-22-2010, 09:53 AM   #1
LQ Newbie
Registered: Sep 2010
Posts: 12

Rep: Reputation: 0
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.

Many Thanks
Old 10-22-2010, 09:56 AM   #2
LQ Veteran
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400

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.
Old 10-22-2010, 10:05 AM   #3
LQ Newbie
Registered: Sep 2010
Posts: 12

Original Poster
Rep: Reputation: 0
I will, sorry,

Last edited by richiep; 10-22-2010 at 10:06 AM.
Old 10-28-2010, 09:15 PM   #4
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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.

Closed Thread

extract, write, xml

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to do search & replace on a text file--need to extract URLs from a sitemap file Mountain Linux - General 4 08-07-2015 10:52 AM
extract xml from a large text file specified by the user richiep Linux - General 1 10-22-2010 06:46 PM
Prompt the user for a file to open, extract the XML and write to another text file. richiep Linux - Newbie 7 10-22-2010 03:34 PM
copy last 10000+ lines of large text file to a temporary file emilyg Linux - Newbie 3 06-24-2009 02:43 PM
How to Extract a .xml.bz2 file? en3r0 Linux - Software 2 02-21-2006 09:46 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration