Scanning/filtering news for selected strings

Carl Edman cedman at golem.ps.uci.edu
Sat Dec 22 05:32:23 AEST 1990


In article <6 at equinox.UUCP> root at 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 at golem.ps.uci.edu
in the laboratory.                           | edmanc at uciph0.ps.uci.edu



More information about the Comp.unix.shell mailing list