[Tutor] Working with output of a subprocess

3n2 Solutions 3n2solutions at gmail.com
Fri Jan 11 23:29:18 CET 2013


Hello,

Need some help with working with a text file.
Is it possible to get the values associated with each of the parameter in
the below text file format? For example:

1. How can I check what the Min and Max values are?
2. How to check the second column value associated with "epoch2"?

Your help is greatly appreciated. I'm using Python 2.7 on Windows7.



Examining file: 5521W2310000.txt

Duration                 :      0h : 59m
First meas : week   :  86     :   1721
Last  meas : week   :  89     :   1721

Min val           :     15
Max val         :     18
3D             :   3600  100.0%

summary         Total  Missed    Rate
epoch1                :        1378       0       0\1000
epoch2                :        2154       1       0\1000


Thanks,
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130111/ae1b0305/attachment.html>


More information about the Tutor mailing list