Hi,
I met a problem to set the grammar to ignore one more strings in same line, for example for below strings:
0004 SDR Full 01 01 20 a 02 snum 13 CPU0_VCCSA = 88 OK 0.88 Volts
0005 SDR Full 01 01 20 a 02 snum 14 CPU0_VPP = bf Init 1.80 Volts
0006 SDR Full 01 01 20 a 02 snum 1a PCH_1.05VS = 5f FAIL 0.93 Volts
0007 SDR Full 01 01 20 a 02 snum 1b PCH_VNN_SBY = b9 NS 1.81 Volts
I'd like to ignore above red marked characters/locations, note that for the first red marked character in above each line it could be two numeric combined i.e. 88, or one numeric with one non-numeric combined i.e. 5f or b9, or even with two non-numeric combined i.e. bf.
I have successfully to ignore the 2nd red marked character(0.88/1.80/0.93/1.81) which is pure numeric by below grammar:
.\d*.\d*\sVolts
(attach file is an example)
But I don't know how to add the first red marked character into the grammar, because I want the 'OK/Init/FAIL/NS' character/location which is after the first red marked character can not be ignored(exclude in the grammar).
And, the same rule for the line which is with 'degree C' character in the end of the line, i.e.:
0015 SDR Full 01 01 20 a 01 snum 44 BBU Temp = 00 Init 0.00 degrees C
0016 SDR Full 01 01 20 a 01 snum 50 CPU0_DIMM Temp = 00 OK 0.00 degrees C
Please help and thanks in advanced!
Jacky
I met a problem to set the grammar to ignore one more strings in same line, for example for below strings:
0004 SDR Full 01 01 20 a 02 snum 13 CPU0_VCCSA = 88 OK 0.88 Volts
0005 SDR Full 01 01 20 a 02 snum 14 CPU0_VPP = bf Init 1.80 Volts
0006 SDR Full 01 01 20 a 02 snum 1a PCH_1.05VS = 5f FAIL 0.93 Volts
0007 SDR Full 01 01 20 a 02 snum 1b PCH_VNN_SBY = b9 NS 1.81 Volts
I'd like to ignore above red marked characters/locations, note that for the first red marked character in above each line it could be two numeric combined i.e. 88, or one numeric with one non-numeric combined i.e. 5f or b9, or even with two non-numeric combined i.e. bf.
I have successfully to ignore the 2nd red marked character(0.88/1.80/0.93/1.81) which is pure numeric by below grammar:
.\d*.\d*\sVolts
(attach file is an example)
But I don't know how to add the first red marked character into the grammar, because I want the 'OK/Init/FAIL/NS' character/location which is after the first red marked character can not be ignored(exclude in the grammar).
And, the same rule for the line which is with 'degree C' character in the end of the line, i.e.:
0015 SDR Full 01 01 20 a 01 snum 44 BBU Temp = 00 Init 0.00 degrees C
0016 SDR Full 01 01 20 a 01 snum 50 CPU0_DIMM Temp = 00 OK 0.00 degrees C
Please help and thanks in advanced!
Jacky
Comment