Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #27969 > unrolled thread

Extract Text Format Table Data

Started byhussain.a.rasheed@gmail.com
First post2012-08-27 02:45 -0700
Last post2012-08-27 02:45 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Extract Text Format Table Data hussain.a.rasheed@gmail.com - 2012-08-27 02:45 -0700

#27969 — Extract Text Format Table Data

Fromhussain.a.rasheed@gmail.com
Date2012-08-27 02:45 -0700
SubjectExtract Text Format Table Data
Message-ID<0d9a48cc-4ac5-45a1-9471-8b7d95e5ba73@googlegroups.com>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web