# -*- coding: utf-8 -*-
import glob, re, io, sys
pats = sys.argv[1:] or ['cache/r349-*graduate*']
for p in pats:
    for f in glob.glob(p)[:8]:
        t = io.open(f, encoding='utf-8', errors='ignore').read()
        print(f, len(t), re.findall(r'\$\s?[\d,\.]+', t)[:8], len(re.findall(r'tuition', t, re.I)))
