Extract Text Format Table Data

Discussion in 'Python' started by hussain.a.rasheed@gmail.com, Aug 27, 2012.

  1. Guest

    Hi,

    I am trying to extract some data from a log file that outputs tables in text format. I've been trying to accomplish this for some time but without any luck. Hence, appreciate if any of you could help out.

    Below is a just one block of table from the file. There will be many blocks like this in the log file.

    ROUTES TRAFFIC RESULTS, LSR
    TRG MP DATE TIME
    37 17 120824 0000

    R TRAFF NBIDS CCONG NDV ANBLO MHTIME NBANSW
    AABBCCO 6.4 204 0.0 115 1.0 113.4 144
    AABBCCI 3.0 293 115 1.0 37.0 171
    DDEEFFO 0.2 5 0.0 59 0.0 107.6 3
    EEFFEEI 0.0 0 59 0.0 0.0 0
    HHGGFFO 0.0 0 0.0 30 0.0 0.0 0
    HHGGFFI 0.3 15 30 0.0 62.2 4
    END

    Thanks
    , Aug 27, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jabba Laci
    Replies:
    0
    Views:
    69
    Jabba Laci
    Apr 10, 2013
  2. Arnaud Delobelle

    Re: extract HTML table in a structured format

    Arnaud Delobelle, Apr 10, 2013, in forum: Python
    Replies:
    0
    Views:
    109
    Arnaud Delobelle
    Apr 10, 2013
  3. Jabba Laci
    Replies:
    0
    Views:
    102
    Jabba Laci
    Apr 10, 2013
  4. Chris Angelico
    Replies:
    0
    Views:
    75
    Chris Angelico
    Apr 11, 2013
  5. Prasad, Ramit
    Replies:
    0
    Views:
    122
    Prasad, Ramit
    Apr 12, 2013
Loading...

Share This Page