Article View: bit.listserv.xedit-l
Article #799Re: The "macro" isn't...
From: Otto Stolz
Date: Thu, 30 Apr 1992 08:40
Date: Thu, 30 Apr 1992 08:40
45 lines
2384 bytes
2384 bytes
On Wed, 29 Apr 1992 14:27:34 EDT laszlo grunfeld <LAZBM@CUNYVM> said:
> I have a file with names like this
> JOHN DOE
> JANE DOE
> I'd like to convert them to look like this
> John Doe
> Jane Doe
> Does anyone have a macro to do this?
I guess the term "with names" is meant to refer to the contents of the
file? And the names in the file are column-adjusted, as in this example?
On Wed, 29 Apr 1992 22:46:00 EDT Milamber <GCS_JOGULIN@STEVENS> said:
> /* begin rexx source */
> parse arg fn ft fm .
> [...]
> rename fn ft fm nfn nft fm
> [...]
If I am right, this does not solve Laszlo's problem, as this EXEC tries
to rename a file rather than changing it's contents.
I have a pair of prefix macros, L and U, for XEDIT to uppercase, and
lowercase, respectively, the contents of one or several lines (invoke
them in the usual ways, e.g. UU .. UU, or U17, to uppercase a group of
lines). The makros honour the Zone and Scope settings.
If the names are column-adjusted, Laszlo could solve his problem in two
and a half steps:
- set the Zone for the first names (exept the initials), then LL the
whole range,
- set the Zone for the last names (exept the initials), then LL the whole
range,
- as a precaution, SET ZONE 1 * afterwards.
If the names are not adjusted, you could take my macros as a starting
point for your own development.
Lazlo, I'll send you my whole XEDIT stuff under separate cover. (You wiil
need RDRLIST rather than MAIL to browse, or receive, the files).
Best wishes,
Otto Stolz <RZOTTO@DKNKURZ1.Bitnet>
<RZOTTO@nyx.uni-konstanz.de>
Technical Details
Message-ID:
<XEDIT-L%92043005480394@OHSTVMA.IRCC.OHIO-STATE.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!auvm!DKNKURZ1.BITNET!RZOTTOShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c92b,a3f8b737d8eacf9
X-Google-Attributes: gid10c92b,public
X-Google-ArrivalTime: 1992-04-30 01:40:34 PST
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!auvm!DKNKURZ1.BITNET!RZOTTO
X-Acknowledge-To: <RZOTTO@DKNKURZ1>
Message-ID: <XEDIT-L%92043005480394@OHSTVMA.IRCC.OHIO-STATE.EDU>
Newsgroups: bit.listserv.xedit-l
Date: Thu, 30 Apr 1992 10:40:34 +0200
Sender: VM System Editor List <XEDIT-L@UGA.BITNET>
From: Otto Stolz <RZOTTO@DKNKURZ1.BITNET>
Subject: Re: The "macro" isn't...
In-Reply-To: Message of Wed,
29 Apr 1992 22:46:00 EDT from <GCS_JOGULIN@STEVENS>
Lines: 45