[Info-vax] SET DEFAULT iterative logical name translation

Dave Froble davef at tsoft-inc.com
Tue Oct 26 13:14:14 EDT 2021


On 10/26/2021 5:49 AM, alanfe... at gmail.com wrote:
> On Tuesday, October 26, 2021 at 4:52:38 AM UTC-4, Henry Crun wrote:
>> On 26/10/2021 8:49, Dave Froble wrote:
>>> On 10/25/2021 4:33 PM, Arne Vajhøj wrote:
>>>> On 10/25/2021 3:54 PM, Phillip Helbig (undress to reply) wrote:
>>>>> In article <sl6m42$4v0$1... at dont-email.me>, Stephen Hoffman
>>>>> <seao... at hoffmanlabs.invalid> writes:
>>>>>> EDT was long ago considered deprecated and ~immutable, and now it's
>>>>>> apparently not.
>>>>>
>>>>> Much faster than TPU: no cursor slow motion, doesn't read the whole 1-GB
>>>>> file if it just needs to change the top few lines.  Probably easier to
>>>>> script and run in batch.
>>>>
>>>> EVE/TPU is actually very powerful for scripting.
>>>>
>>>> Arne
>>>>
>>>
>>> When I need to change "ABC" to "XYZ", EDT is very useful ...
>>>
>> But when you want to replace "ABC" with "XYZ" in every line containing "UVW" you need TPU "Learn" capability
>>
>
> Nope. EDT can do it! (ED is EDIT/EDT/.)
>
> $ ED B.B
>     1       ABC
> *TYPE WH
>     1       ABC
>     2       ABC UVW
>     3       ABC
>     4       ABC UVW
>     5       ABC UVW
>     6       ABC
> [EOB]
> *S/ABC/XYZ/ ALL 'UVW'
>     2       XYZ UVW
>     4       XYZ UVW
>     5       XYZ UVW
> 3 substitutions
> *TYPE WH
>     1       ABC
>     2       XYZ UVW
>     3       ABC
>     4       XYZ UVW
>     5       XYZ UVW
>     6       ABC
> [EOB]
> *

Very nice !!!

That specific capability is something that I've personally never run into.

When working on a program, which is my main usage of editors, I'm very careful
of what I'm doing.  Mass substitutions can drive a stake through your heart
if not very specific about what's happening.  Thus, I'm not a user of some advanced,
and even normal, capabilities.


-- 
David Froble                       Tel: 724-529-0450
Dave Froble Enterprises, Inc.      E-Mail: davef at tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA  15486



More information about the Info-vax mailing list