🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #6399

Re: nngrab - Specific Searches

#6399
From: Nancy McGough
Date: Tue, 13 Sep 1994 06:06
35 lines
1973 bytes
dmws@uhura.cc.rochester.edu (D. Williams) writes:
>I use nngrab a lot and am wondering how to do a specific search. For example
>if I wanted to find 'com' but not find computer, comfort, etc...
>
>In other words, I am looking for a way to only find the word I am searching
>for and not other words that it is contained within. Thank you.

Try this:

nngrab "^com[^a-zA-Z]|[^a-zA-Z]com[^a-zA-Z]|[^a-zA-Z]com$" 


^com[^a-zA-Z]          means  starts with ``com'' followed by non-alpha
|                             or
[^a-zA-Z]com[^a-zA-Z]         non-alpha ``com'' non-alpha
|                             or
[^a-zA-Z]com$"                ends with ``com'' preceded by non-alpha


Instead of nngrab I usually use nn with the appropriate flags, i.e.:

nn -mxXs/"^com[^a-zA-Z]|[^a-zA-Z]com[^a-zA-Z]|[^a-zA-Z]com$" 

Because that way I can customize the flags, e.g., use n instead of s
if I'm searching the Name field.

Hope this helps,
Nancy


--

 **  **    Nancy McGough             |  "No one suspects the
*  **  *   Infinite Ink              |   days to be gods."      
 **  **    ftp://ftp.ii.com/pub/ii   |                     -Emerson    
Technical Details
Message-ID: <353fga$s3r@news.halcyon.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!bga.com!news.sprintlink.net!uunet!ftpbox!mothost!mdisea!uw-coco!nwnexus!news.halcyon.com!usenet
References: <1994Sep5.151159.21584@galileo.cc.rochester.edu>

Show Full Headers
Complete Article Headers
Message-ID: <353fga$s3r@news.halcyon.com>
Subject: Re: nngrab - Specific Searches
Date: Tue, 13 Sep 1994 06:06:02 +0000
From: Nancy McGough <nancym@ii.com>
References: <1994Sep5.151159.21584@galileo.cc.rochester.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!bga.com!news.sprintlink.net!uunet!ftpbox!mothost!mdisea!uw-coco!nwnexus!news.halcyon.com!usenet
Newsgroups: news.newusers.questions,news.software.nn
Organization: Infinite Ink, Seattle, Washington, USA
Lines: 35
Reply-To: Nancy McGough <nancym@ii.com>
NNTP-Posting-Host: chinook.halcyon.com
X-Newsreader: NN 6.4.18