Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site cithep.UucP Path: utzoo!watmath!clyde!burl!ulysses!allegra!princeton!astrovax!cithep!tim From: tim@cithep.UucP (Tim Smith ) Newsgroups: net.news.b,net.unix Subject: Re: grepping for "Subject" in /usr/spool/news Message-ID: <47@cithep.UucP> Date: Sun, 7-Oct-84 03:00:04 EDT Article-I.D.: cithep.47 Posted: Sun Oct 7 03:00:04 1984 Date-Received: Sun, 7-Oct-84 09:11:09 EDT References: <4003@elsie.UUCP> Organization: Caltech HEP, Pasadena, CA Lines: 6 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