in reply to Re: Compare two log files line by line containing a keyword
in thread Compare two log files line by line containing a keyword
lets take an example
If my data set is like this.LOG 1 (x.log) contains
INFO @1102266 PHResourceLayer_Z4: mti_clk_chk:################ start of test ################ ; T=1102266
INFO @1102334 PHResourceLayer_Z4: mti_clk_chk:Checking the period of MTI, MTI10 clk from SV; T=1102334
LOG 2 (y.log) contains
UVM_INFO @1092507 reporter Z4_COREA: mti_clk_chk: ################ start of test ################ ; T=1092507
UVM_INFO @1092563 reporter Z4_COREA: mti_clk_chk: Checking the period of MTI, MTI10 clk from SV; T=1092563
Then for first line I have to check "################ start of test ################ ; T=1102266" and "################ start of test ################ ; T=1092507" as value of T are not same so it should give these details in output file stating the details are not matching.
Similiarly for line 2 we have to match "Checking the period of MTI, MTI10 clk from SV; T=1102334" and "Checking the period of MTI, MTI10 clk from SV; T=1092563". Here also values of T are not matching so pass it to output file.
(For each line in the logs, every details after "mti_clk_chk:" needs to be checked )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Compare two log files line by line containing a keyword
by thanos1983 (Parson) on Feb 19, 2019 at 11:50 UTC | |
|
Re^3: Compare two log files line by line containing a keyword
by BillKSmith (Monsignor) on Feb 19, 2019 at 14:51 UTC | |
|
Re^3: Compare two log files line by line containing a keyword
by poj (Abbot) on Feb 19, 2019 at 11:12 UTC | |
by rahu_6697 (Novice) on Feb 20, 2019 at 09:28 UTC |