0byt3m1n1
Path:
/
data
/
20
/
oldlogs
/
[
Home
]
File: agg.py
#!/usr/bin/python import glob tot = 0 for foo in glob.glob('20120920121302/*.bwlog'): for line in open(foo): try: bsize = int(line.strip().split()[1]) except: continue tot += bsize print tot