Sudarshan Raghavan wrote:

>On Tue, 17 Sep 2002, Pravesh Biyani wrote:
>
>>hi
>>  i am using a log file which has three or more than three entries in a row and 
>there are many rows.. 
>>
>>i would like to read the file and determine few things out of it.. i want to know 
>the way to do it.
>>
>>Currently i am thinking of reading the file line by line and then search for items., 
>but iam afraid, it wouldnt work as number of 
>>variables is changing every line... 
>>
>>please suggest me somthing..
>>
>
>We can give you suggestions if you can tell us a little bit more as to 
>what 'i would like to read the file and determine few things out of it' 
>actually means. Can you post a small example of how the log file looks 
>like and more importantly what have you tried so far?
>
>
>
hi,,
here is the log file.. ( a part of it )

T 1018448128 552731
T 1018448128 762819
T 1018448128 972729
T 1018448129 182797
T 1018448129 392732
T 1018448129 602799
T 1018448129 812729
T 1018448130 22811
T 1018448130 232729
T 1018448130 442802
T 1018448130 652729
T 1018448130 862814
T 1018448131 72729
T 1018448131 282802
T 1018448131 492730
E 1018448131 666512 172 32869 0 0 160
E 1018448131 686009 172 32869 1 0 320
T 1018448131 702806
E 1018448131 705994 172 32869 2 0 480
E 1018448131 726440 172 32869 3 0 640
E 1018448131 746594 172 32869 4 0 800
E 1018448131 766824 172 32869 5 0 960
E 1018448131 786245 172 32869 6 0 1120
E 1018448131 806297 172 32869 7 0 1280
E 1018448131 826614 172 32869 8 0 1440
E 1018448131 846575 172 32869 9 0 1600
E 1018448131 865710 172 32869 10 0 1760
E 1018448131 885859 172 32869 11 0 1920
T 1018448131 905775
E 1018448131 905891 172 32869 12 0 2080
E 1018448131 926173 172 32869 13 0 2240
E 1018448131 955535 172 32869 14 0 2400
E 1018448131 955862 172 32869 15 0 2560
E 1018448131 986499 172 32869 16 0 2720
E 1018448132 5794 172 32869 17 0 2880
E 1018448132 27912 172 32869 18 0 3040
E 1018448132 46918 172 32869 19 0 3200
E 1018448132 65760 172 32869 20 0 3360
E 1018448132 85791 172 32869 21 0 3520
E 1018448132 106231 172 32869 22 0 3680
T 1018448132 122730


now i want to filter each of the row components( seperated by space) 
into a variable and manipulate those variables according to my 
requirement!! but the number of elements in a row are changing.. so this 
is the problem

I would really appreaciate if you could tell me the way to do it!

pr�vesh



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to