Thread View: news.software.readers
3 messages
3 total messages
Started by Robert Lewis Spence
Tue, 25 Jun 1991 20:09
Searching for a word in nn
Author: Robert Lewis Spence
Date: Tue, 25 Jun 1991 20:09
Date: Tue, 25 Jun 1991 20:09
10 lines
1178 bytes
1178 bytes
I'm doing some recent research on certain topics in current events. What would like to do is easily search all unread articles (Subscribed or unsubscribed) for certain keywords and have all articles that match that keyword either stored to a file or presented as a single listing. The key here is that I would like to check for the keywords in the _article_ and not just in the subject line. Is this possible and if so, will it take forever? Thanks in advance, Rob
Re: Searching for a word in nn
Author: Jaap Vermeulen
Date: Wed, 26 Jun 1991 16:38
Date: Wed, 26 Jun 1991 16:38
19 lines
1434 bytes
1434 bytes
In <1991Jun25.200918.13106@ux1.cso.uiuc.edu> rlsg7229@uxa.cso.uiuc.edu (Robert Lewis Spence) writes:
>here is that I would like to check for the keywords in the _article_ and
>not just in the subject line. Is this possible and if so, will it take
>forever?
Nn keeps a database of certain information in the article
_header_. For searching in the articles itself nn does not
provide any assistance that I know of.
You will be better off with a
find /usr/spool/news -exec grep -l "YourKeyword" {} \;
given that you're not going over NFS.
$0.02
-Jaap-
Re: Searching for a word in nn
Author: Richard M. Mathews
Date: Fri, 28 Jun 1991 04:28
Date: Fri, 28 Jun 1991 04:28
15 lines
1396 bytes
1396 bytes
jaap@sequent.com (Jaap Vermeulen) writes:
>You will be better off with a
> find /usr/spool/news -exec grep -l "YourKeyword" {} \;
Of course this runs 1 grep for every article in the spool. For a full
feed that's something like 8000 processes for each day of news you keep.
You can reduce this somewhat with
find /usr/spool/news -print | xargs grep -l "YourKeyword"
In place of "xargs" you can also use "apply -number" with as big a number
as it can take.
Richard M. Mathews Freedom for Lithuania
richard@locus.com Laisve!
lcc!richard@seas.ucla.edu
....!{uunet|ucla-se|turnkey}!lcc!richard
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