[Info-vax] SET DEFAULT iterative logical name translation

Arne Vajhøj arne at vajhoej.dk
Tue Oct 26 09:36:23 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.
>>>
>>> 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]

Ha. We got an EDT wizard among us.

:-)

But still TPU is really a fullblown programming
language with procedures, if statement, loop
statement etc., so I will maintain the original
claim that it is good for scripting.

Arne




More information about the Info-vax mailing list