![]() |
|
|||
File indexing completed on 2024-11-27 03:17:54
0001 #!/bin/python 0002 import sys 0003 0004 # Parse the output of dump_l1t_configs.py, printing the nonempty records and hash values 0005 # Author: Dustin Burns Oct 22, 2015 0006 0007 # Check inputs 0008 if len(sys.argv) != 2: 0009 print('Usage: python parse_dump_l1t_configs.py log_file.txt') 0010 sys.exit() 0011 0012 # Open log file 0013 f = open(sys.argv[1]) 0014 0015 # Loop through log file, printing hashes for records of interest 0016 ind=0 0017 rec = ' ' 0018 for i, line in enumerate(f): 0019 if 'Rcd' in line or 'Record' in line: 0020 ind = i 0021 rec = line.split()[0] 0022 if i == ind+3 and len(line.split())>3: 0023 print(rec + ' ' + ':' + ' ' + line.split()[4])
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |
![]() ![]() |