def main(input, output): with open(output, 'wb') as outfile: for fname in reader.smart_find_logs(input): print "Processing", fname with open(fname, 'rb') as f: results = pipeline.inline(f, filt) outfile.writelines(util.stringify(results))
def main(input, output): for fname in reader.smart_find_logs(input): print "Processing", fname with open(fname, 'rb') as f: results = pipeline.inline(f, increment) util.exhaust(results) dump_counts(output)