#!/bin/gawk -f # paircheck - be sure each BEGIN { IGNORECASE = 1 inList = 0 LSlineno = 0 LElineno = 0 prevFile = "" } # if more than one file, check for unclosed list in first file FILENAME != prevFile { if (inList) printf ("%s: found before end of file\n", prevFile, LSlineno) inList = 0 prevFile = FILENAME } # match