File indexing completed on 2023-03-17 11:12:04
0001
0002 from __future__ import print_function
0003 import sys
0004
0005
0006
0007
0008
0009 if len(sys.argv) != 2:
0010 print('Usage: python parse_dump_l1t_configs.py log_file.txt')
0011 sys.exit()
0012
0013
0014 f = open(sys.argv[1])
0015
0016
0017 ind=0
0018 rec = ' '
0019 for i, line in enumerate(f):
0020 if 'Rcd' in line or 'Record' in line:
0021 ind = i
0022 rec = line.split()[0]
0023 if i == ind+3 and len(line.split())>3:
0024 print(rec + ' ' + ':' + ' ' + line.split()[4])