GX/search_string/replace_string/
GX line-no/search_string/replace_string/

Performs a GLOBAL SEARCH on the file that is currently in memory. The GX command searches for the string "search string" and, upon finding it, prints the line, on which the string occurs, on the screen with the cursor superimposed upon the string. If you wish to change the string, press the <.> key. Otherwise, any other key will leave the string unchanged and BASIC will continue searching through the file for any other occurrences.

GX/GOTO/THEN/

will replace all occurrences of GOTO with THEN.

If line-no is specified, the search will commence on that line and then proceed through the file. If line-no is not specified, the file will be searched from the beginning. To exit the search at any time, press "BREAK". The tilde (~) character is a wild card and will match anything.

GX/G---//

will replace all four letter words, which start with G, with a blank.

To replace a string with a /, use the form:

GX/searchstring/-/

See also EDIT