I solved this problem by hacking together a version of grep with a new flag, the -o flag, which means only match one line per file. It's a simple change to grep, and it doesn't require teaching grep about usenet news headers, so it may be used for other purposes. -- Tim Smith ihnp4!cithep!tim or ihnp4!wlbr!callan!tim