#!/bin/csh -f

# Summarize problems from CLR.  Later could generalize to other texts.

grep -in 'clr[^s]' ~/teaching/{umcp/488d,c363,c460}/*/hw[0-9].tex \
  | sed -n 's+\([^:]*\)/\(.*\)/\(hw[0-9].tex:[0-9]*\):.*[ {]\([0-9.]*[0-9]-[0-9][0-9]*\).*+\4 \2 \1 \3+p' \
  | sort -n > ~/bin/courses/clrsum
