LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

Rep: Reputation: 0
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
 
Old 10-22-2010, 09:56 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

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
richiep
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
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,506

Rep: Reputation: 116Reputation: 116
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

Tags
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
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 do search & replace on a text file--need to extract URLs from a sitemap file Mountain Linux - General 3 04-05-2009 01:22 PM
How to Extract a .xml.bz2 file? en3r0 Linux - Software 2 02-21-2006 09:46 PM


All times are GMT -5. The time now is 11:59 AM.

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