[comp.unix.shell] Scanning/filtering news for selected strings

root@equinox.UUCP (Super user) (12/21/90)

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


Larry Wall lwall@jpl-decvax.jpl.nasa.gov  sent me a PERL program that "scans all newsgroups for interesting
strings." and then prints a message to the terminal although "other behaviours
are of course possible...".  I know PERL is on uunet!, how do you get it?? 

There's so many news articles, I think there is a definite need to be able to
filter just subjects of interests -- otherwise you could spend your whole day
reading news.

--Wolf Kozel

cedman@golem.ps.uci.edu (Carl Edman) (12/22/90)

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