Thread View: news.software.readers
5 messages
5 total messages
Started by Levin F Magruder
Wed, 10 Feb 1993 14:31
Help with RN macro (can they be interactive)
Author: Levin F Magruder
Date: Wed, 10 Feb 1993 14:31
Date: Wed, 10 Feb 1993 14:31
12 lines
1106 bytes
1106 bytes
I know; what I'm asking is probably obvious or obviously not possible, but I'm a unix ignoramus. 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? (I don't want to necessarily put these things in a kill file. Some days I may feel like reading about tin or macintoshes.)
Re: Help with RN macro (can they be interactive)
Author: Sridhar Venkataraman
Date: Wed, 10 Feb 1993 18:18
Date: Wed, 10 Feb 1993 18:18
24 lines
1676 bytes
1676 bytes
levin@world.std.com (Levin F Magruder) writes: )Is there are way to write a macro that will ask you what phrase you )want instead of tin? ) )(I don't want to necessarily put these things in a kill file. Some )days I may feel like reading about tin or macintoshes.) The solution to it is a macro on the lines of: (this would go into ~/.rnmac) @k /%"Pattern: "/j^j and you just type @k which will prompt you for a pattern. There are high levels of perfection attainable starting with this simple macro (which obviously I don't claim to possess :-). If you want some enhancements which could be added, I can mail you my rn macro file (which was collected from here and elsewhere) on request. But I strongly would suggest getting a copy of trn in any case (if you don't have it). Refer the manual too. It offers a little help on macros. Sridhar. -- Sridhar Venkataraman ASU, Tempe, Arizona USA sridhar@asuvax.eas.asu.edu
Re: Help with RN macro (can they be interactive)
Author: Per Hedeland
Date: Wed, 10 Feb 1993 23:51
Date: Wed, 10 Feb 1993 23:51
24 lines
1692 bytes
1692 bytes
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) If you just hit return in response, it does nothing. Should probably have some safeguard to only have effect in the right modes... --Per Hedeland per@erix.ericsson.se or per%erix.ericsson.se@sunic.sunet.se or ..uunet!erix.ericsson.se!per
Re: Help with RN macro (can they be interactive)
Author: Larry W. Virden
Date: Thu, 11 Feb 1993 13:49
Date: Thu, 11 Feb 1993 13:49
31 lines
1880 bytes
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
Re: Help with RN macro (can they be interactive)
Author: Marc S. Gibian
Date: Wed, 17 Feb 1993 22:30
Date: Wed, 17 Feb 1993 22:30
8 lines
1107 bytes
1107 bytes
Is there a kill file entry that would work for both rn AND (md)xrn? Thanks... -- Marc S. Gibian email: gibian@talent.ljo.dec.com Principal Software Engineer phone: (508) 486-6598 Digital Equipment Corporation fax: (508) 486-6648 or (508) 486-6100
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