Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

EVE REPLACE — VMS 5.0

 REPLACE

 Replaces one text string with another.

 Example:

    REPLACE butter margarine

 Replaces the old string ("butter") with the new string ("margarine").  EVE
 does a FIND for the old string, highlights the found text, and asks for
 one of the following choices:

    YES        Replace this one and find the next one (default choice).
    NO         Skip this one and find the next one.
    ALL        Replace all the occurrences (no further prompting).
    LAST       Replace this one and stop here.
    QUIT       Skip this one and stop here.

 o  With Yes or All, if the search covers the buffer more than once, EVE
    asks if you want to continue, so you can avoid replacing a string again
    when the old and new strings are similar.  When the operation finishes,
    EVE tells you how many replacements were made.

 o  If the old string is all lowercase, EVE searches for for any occurrence
    of it.  If the new string is also all lowercase, EVE matches the case
    appropriately for each replacement.  For example, if EVE finds a
    capitalized version of the old string, it is replaced by a capitalized
    version of the new string.

 o  If the old string contains any uppercase letters, the search and
    replacement are exact (case sensitive).

        Old String  New String     Highlight  Replacement
        -------------------------------------------------
        butter      margarine      butter     margarine
                                   Butter     Margarine
                                   BUTTER     MARGARINE

        Butter      margarine      Butter     margarine

        butter      Margarine      butter     Margarine
                                   Butter     Margarine
                                   BUTTER     Margarine

        Butter      Margarine      Butter     Margarine

 o  To replace phrases (several words), put the strings in quotes or let
    EVE prompt you for them.  For example:

       REPLACE "Samuel L. Clemens" "Mark Twain"

 Keys:  The WPS keypad defines both GOLD/; and GOLD/: as REPLACE.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026