🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #7159

Re: nn -x command and reguler exp? How to do?

#7159
From: Milt Epstein
Date: Wed, 22 Feb 1995 03:20
30 lines
2059 bytes
geoi310@netcom.com (george izumi) writes:

>the nn -x -s japan   will bring up articles relating to japan.
>
>Is there a way to give it and or type commands?
>
>nn -x -s japan and quake   or something similar?
>
>Any info by e-mail would be appreciated.

Checking out the nn man page, it says that if you put a `/' after the
"-s", the following pattern is interpreted as a regular expression.
Now I didn't find much about what syntax nn uses for regular
expressions, but `|' is often used for "or", so I tried the following:

   nn -xX -s/japan\|quake soc.culture.japan

and it seemed to do the trick (that's the only test I did).  Note the
`\' before the `|' -- that's to escape the `|' from being interpreted
by the shell (which would interpret it as a pipe, which would not be
good :-).

It's not clear what you mean by "and", but basically anything that can
be expressed via regexp is fair game.
   
-- 
Milt Epstein
Visiting Research Programmer    National Animal Poison Control Center (NAPCC)
epstein@napcc-hp.cvm.uiuc.edu            College of Veterinary Medicine (CVM)
(or mepstein@uiuc.edu)      University of Illinois at Urbana-Champaign (UIUC)
Technical Details
Message-ID: <epstein.793423209@napcc-hp>
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!nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!news.rz.uni-ulm.de!zib-berlin.de!news.mathworks.com!zombie.ncsc.mil!news.duke.edu!convex!cs.utexas.edu!howland.reston.ans.net!vixen.cso.uiuc.edu!napcc-hp!epstein
References: <geoi310D44wE1.4t4@netcom.com>

Show Full Headers
Complete Article Headers
Message-ID: <epstein.793423209@napcc-hp>
Subject: Re: nn -x command and reguler exp? How to do?
Date: Wed, 22 Feb 1995 03:20:09 +0000
From: epstein@napcc-hp.cvm.uiuc.edu (Milt Epstein)
References: <geoi310D44wE1.4t4@netcom.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!nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!news.rz.uni-ulm.de!zib-berlin.de!news.mathworks.com!zombie.ncsc.mil!news.duke.edu!convex!cs.utexas.edu!howland.reston.ans.net!vixen.cso.uiuc.edu!napcc-hp!epstein
Newsgroups: news.software.nn
Organization: University of Illinois at Urbana
Lines: 30
Reply-To: mepstein@uiuc.edu
NNTP-Posting-Host: napcc-hp.cvm.uiuc.edu