[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
More switches; case in Change command
- Subject: More switches; case in Change command
- From: TBaehr@xxxxxxxx
- Date: Thu, 26 Nov 1998 20:52:25 EST
SE/F will place the cursor on the first character of the item found.
SE/S will search within a selected block (you may have to do a function DB to
put the cursor at the beginning of the block).
I don't know of a way to preserve case when doing a change. It seems that the
"or" wildcart ought to work: cia /Change_O_change/Fix_O_fix/ where _O_ is the
"or" wildcard. But that merely generates an error message. A kludge might
include a looping routine that (a) copies the search argument and changes the
case of the first letter; (b) copies the replacement string and changes the
case of the first letter; (c) stores all 4 arguements in save/gets; (d)
contructs a search SEA /Change_O_change/ and at each "find" does a DW function
to select the word : saves word to save/get : compares to the 2 search strings
: does an RD function to erase the found word : replaces the found word with
the corresponding replacement word.
Tim Baehr
tbaehr@xxxxxxxx