LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-22-2010, 06:03 AM   #31
Goni
LQ Newbie
 
Registered: Sep 2005
Posts: 26

Original Poster
Rep: Reputation: 15

Quote:
Originally Posted by konsolebox View Post
Btw what's special about this line? I mean the arrow:
Code:
    --> 0521  17263        -       -  N/A                -      - N/A
As I find that everything except that one contains has even leading spaces.
Well, that arrow is another problem. It will shift up and down depending on the data. That means this id 0521 is a head of the members followed by. Each field in this line is a tab separated having some sort of value. A '-' and 'N/A' represents a value.

BTW: It is not there in the XML output.
 
Old 08-22-2010, 06:05 AM   #32
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
And that XML output.. You just made the script for it now? Or is it an old file?
 
Old 08-22-2010, 06:06 AM   #33
Goni
LQ Newbie
 
Registered: Sep 2005
Posts: 26

Original Poster
Rep: Reputation: 15
You mean this is a fresh output? Yes, this is a fresh sample of data. Data may vary, but fields may differ.
 
Old 08-22-2010, 06:33 AM   #34
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
hey konsolebox, back at ya for the code ... enjoyed seeing the better way to do my clumsy ideas
 
Old 08-22-2010, 09:01 AM   #35
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
@grail Hey it wasn't that clumsy . Most of the hard parts were already done - those that give me a slight fear of hesitation to start making the code. It really gave a starting boost.

P.S. I now verify that it's really easy to learn languages in forums since you also get the methods of other people. There are also lots of challenges .
 
  


Reply



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
Perl Parse .bin file acandria17 Programming 2 07-07-2009 05:42 AM
Help w/ script to read file and parse variables cslink23 Linux - General 18 11-26-2006 02:22 AM
perl script to parse this file ohcarol Programming 10 11-02-2006 09:50 AM
optimizing perl parse file. eastsuse Programming 1 12-22-2004 02:49 AM
Need help with perl/bash script to parse PicBasic file cmfarley19 Programming 13 11-18-2004 05:06 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:38 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration