Path: utzoo!attcan!telly!lethe!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!orion.oac.uci.edu!cedman From: cedman@golem.ps.uci.edu (Carl Edman) Newsgroups: comp.unix.shell Subject: Re: Scanning/filtering news for selected strings Message-ID: Date: 21 Dec 90 18:32:23 GMT References: <6@equinox.UUCP> Organization: University of California, Irvine, USA. Lines: 27 Nntp-Posting-Host: lynx.ps.uci.edu In-reply-to: root@equinox.UUCP's message of 21 Dec 90 15:36:52 GMT In article <6@equinox.UUCP> root@equinox.UUCP (Super user) writes: Hi, I wanted to post a followup article on a question I asked on scanning /usr/spool/news directories for articles of interest. I'd like to thank everyone for replying by email to me. The solutions: "Use NN" -- I think this is available on SUNS. I'm using Xenix 2.3.2. "Grep for the subject in a shell line..." -- Several people "Use find /usr/spool/news/comp/unix -type f -exec egrep 'regexp' {} /dev/null \; I liked this powerful one-liner submitted by Michael Gengenback of FORWISS Of course, if you wanted a really powerful oneliner with the same functionality, which is several times faster , you would use: find /usr/spool/news/comp/unix -type f -print | xargs egrep 'regexp' Carl Edman Theorectical Physicist,N.:A physicist whose | Send mail existence is postulated, to make the numbers | to balance but who is never actually observed | cedman@golem.ps.uci.edu in the laboratory. | edmanc@uciph0.ps.uci.edu