bala_biophy
April 15th, 2008, 07:24 AM
Dear Friends,
I have attached below the sample of a file im processing,
step = 1000 tps = 3746 tk = 301 ps = 248
E1 = -86920 E2 = 18487 E3 = -105407
------------------------------------------------------------------------------
step = 2000 tps = 3748 tk = 300 ps = -150
E1 = -87032 E2 = 18386 E3 = -105419
------------------------------------------------------------------------------
step = 3000 tps = 3750.000 tk = 302 ps = 50
E1 = -87089 E2 = 18502 E3 = -105591
------------------------------------------------------------------------------
My objective is to extract the values of the variable (tps,tk etc) for each step value and arrange them in columns. I would like to know how i can split the file contents by the word "step". I would also appreciate any better way to do the same.
Thanks,
Bala
I have attached below the sample of a file im processing,
step = 1000 tps = 3746 tk = 301 ps = 248
E1 = -86920 E2 = 18487 E3 = -105407
------------------------------------------------------------------------------
step = 2000 tps = 3748 tk = 300 ps = -150
E1 = -87032 E2 = 18386 E3 = -105419
------------------------------------------------------------------------------
step = 3000 tps = 3750.000 tk = 302 ps = 50
E1 = -87089 E2 = 18502 E3 = -105591
------------------------------------------------------------------------------
My objective is to extract the values of the variable (tps,tk etc) for each step value and arrange them in columns. I would like to know how i can split the file contents by the word "step". I would also appreciate any better way to do the same.
Thanks,
Bala