You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
475 B
Python

#!/usr/bin/python
from record import RecordReader
from pytables import FlowRecordsTable
from itertools import izip
from optparse import OptionParser
if __name__ == '__main__':
usage = 'usage: %prog [options] input files'
p = OptionParser(usage)
opts, arguments = p.parse_args()
mg_readers = [RecordReader(FlowRecordsTable(f)) for f in arguments]
for rec_tuple in izip(*mg_readers):
print ""
for r in rec_tuple:
print r