/usr/bin/checknr
checknr checks a list of nroff or troff input files for certain kinds of errors involving mismatched opening and closing delimiters and unknown commands.