🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #3311

Re: Help with RN macro (can they be interactive)

#3311
From: Larry W. Virden
Date: Thu, 11 Feb 1993 13:49
31 lines
1880 bytes
In article <1993Feb10.235131.2568@eua.ericsson.se> per@erix.ericsson.se (Per Hedeland) writes:
:In article <C28LpD.Fpn@world.std.com> levin@world.std.com (Levin F Magruder) writes:
:>I know; what I'm asking is probably obvious or obviously not 
:>possible, but I'm a unix ignoramus.
:
:Neither, I'd say, but certainly doable...
:
:>Often, I want to do some rn command like
:>/[^a-z]tin[^a-z]/:=:j
:>to wipe out all the articles about tin but not "tingling sensations".
:>
:>Is there are way to write a macro that will ask you what phrase you
:>want instead of tin? 
:
:Try this:
:
:@j %(%"Junk string? "=^\(..*\)$?/\[\^a-z\]%1\[\^a-z\]/\:=\:j\n)
:

One side light - use \b instead of [^a-z] to determine word boundaries:

/\btin\b/:=:j

The \b means a word boundary.

WARNING!  Some older rn and trn versions may not consider ^ and $ as
word boundaries...
-- 
Larry W. Virden                 UUCP: osu-cis!chemabs!lvirden
Same Mbox: BITNET: lvirden@cas  INET: lvirden@cas.org
Personal: 674 Falls Place,   Reynoldsburg, OH 43068-1614
Technical Details
Message-ID: <1993Feb11.135108.11339@cas.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!sequent!ogicse!uwm.edu!caen!malgudi.oar.net!chemabs!lwv26
References: <C28LpD.Fpn@world.std.com> <1993Feb10.235131.2568@eua.ericsson.se>

Show Full Headers
Complete Article Headers
Message-ID: <1993Feb11.135108.11339@cas.org>
Subject: Re: Help with RN macro (can they be interactive)
Date: Thu, 11 Feb 1993 13:49:51 +0000
From: lwv26@cas.org (Larry W. Virden)
References: <C28LpD.Fpn@world.std.com> <1993Feb10.235131.2568@eua.ericsson.se>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!sequent!ogicse!uwm.edu!caen!malgudi.oar.net!chemabs!lwv26
Newsgroups: news.software.readers
Article-I.D.: cas.1993Feb11.135108.11339
Sender: usenet@cas.org
Reply-To: lvirden@cas.org (Larry W. Virden)
Followup-To: news.software.readers
Organization: Nedriv Software and Shoe Shiners, Uninc.
Lines: 31