🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.shell
2 messages
2 total messages Started by Super user Fri, 21 Dec 1990 15:36
Scanning/filtering news for selected strings
#1989
Author: Super user
Date: Fri, 21 Dec 1990 15:36
23 lines
1331 bytes
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
Re: Scanning/filtering news for selected strings
#1993
Author: Carl Edman
Date: Fri, 21 Dec 1990 18:32
27 lines
1617 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads