Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-22-2010, 08:05 AM
|
#1
|
LQ Newbie
Registered: Sep 2010
Posts: 12
Rep:
|
Prompt the user for a file to open, extract the XML and write to another text 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
|
|
|
10-22-2010, 09:02 AM
|
#2
|
LQ Newbie
Registered: Sep 2010
Posts: 12
Original Poster
Rep:
|
can any one help?
|
|
|
10-22-2010, 10:02 AM
|
#3
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
Please do not cross-post, it is against the LQ rules. And bumping after just an hour is considered rude.....
If you think you created your other post in the wrong forum, ask a moderator to move it.
|
|
|
10-22-2010, 10:10 AM
|
#4
|
LQ Newbie
Registered: Sep 2010
Posts: 12
Original Poster
Rep:
|
What are you doing then? You are cross posting the same message, looking for brownie points?
|
|
0 members found this post helpful.
|
10-22-2010, 10:21 AM
|
#5
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
No need to get snotty!
You're the one that is breaking the rules with 3 thread about the same subject and asking unfair extra attention from all the others on this board. To remedy that I took 2 of the 3 threads from the zero reply list (which keeps pushing "old" zero reply threads to the top).
If you don't like the way you are treated by me you can:
1) Obey by the LQ rules and don't get bothered ever again by me, or
2) Complain to one of the mods or Jeremy about me.
Have a good day.
BTW: Reported.
|
|
|
10-22-2010, 10:22 AM
|
#6
|
Member
Registered: Apr 2007
Location: the Rocket City
Distribution: Debian, Ubuntu, CentOS; in days past Fedora, Solaris, SunOS, 4.2BSD, 4.3BSD, SVR4, AIX, HP-UX
Posts: 101
Rep:
|
Quote:
Originally Posted by richiep
What are you doing then? You are cross posting the same message, looking for brownie points?
|
Excellent! Abuse. If there's anything LQ members respond to better than breaking rules, it's abuse.
|
|
|
10-22-2010, 10:31 AM
|
#7
|
LQ Newbie
Registered: Sep 2010
Posts: 12
Original Poster
Rep:
|
That is not abuse just something i noticed. He has littered the system as much as me! I apologised for doing it in another thread yet he found it necessary to comment on all my others. I am new to this and realised i posted something in the wrong area. Not getting snotty at all, not being abusive either. I was just looking for some help, not some ponsey remark in each of my threads! sorry if iv offended!
|
|
|
10-22-2010, 03:34 PM
|
#8
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
And now that this is settled (yes, you, Richie, were breaking the
rules; pointing that out repeatedly is OK from a mods perspective)
can we leave that discussion be and return to the subject? This is,
after all, the original of the series. The dupes are reported for
closure, and that's enough.
Cheers,
Tink
|
|
|
All times are GMT -5. The time now is 08:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|