Operator`s manual

In these examples, the string SoUGHT is delimited
(marked
ofD by the
character /. Actually, any character except space, tab and
@
can be used as
th delimiter. For exampl, the command
FIND DAD
finds
the
lirst
occur:rence ofthe character
A. The
delimiter
is
the character
D.
The delimiter is de{ined
as the
flrst
character
fnot
cowting space
or tab) a{ter
ih keyword FIND. This featue is prplexing to beginners; its purpose is io
allow
you
to search for strings that contain slashes
(,
or, for that matter, any
special characters.
The
general
form ofthe comlr1alrd is
FIND delimiter st ng dlimiter
tlineno,linenol t,Al
In
the
general form,
symbok
l'jthin
a
pair
ofbrackets are optional
qualifier8
of
rne comrnano.
REP
Comrnand
This command replaces a spcified string in
your
source
Fogram
with a dif
fa.anr cnp-ifip.l crrind
REP/OLD,NEW
@
replac$ the fir6t occurrence ofthe string
OLD
with
the
stdng NEw.
REP/OLDArEWxx,yy
@
replaces the first occurrence ofthe string
OLD between statements number xx to
},'y
with the string NEw.
REP/OLD/NEW/,,A.
@@
replaces atl th occurencs of th string
OLD with the st ng NEW.
REP/OLD.NEWXX,]?,A
@
replaces all the occurrences ofthe string
OLD between statements
xx
to
}?
1'Jith
the string NXw.
REP/oLDA.lEWxx,]'y,Q
@
dfuplays, in turn, each occurrence ofthe
stridg OLD between statemedts xx and
vv.
Q
stands for
"query."
To
replace the
displayed
OLD
with NE\ry,
type
Y,
then
@.
To rctain the displayed OI-D,
press@.
In
these examplesj the strings OLD and NEW are delimited by the charactr
"/'.
As with
the
FIND
comman4 any character except Bpace, tab and RETURN, can
be used as
the delimiter.
For
examplej the comrrand
REP+RTS+BRI(+JA
replacs all occurences ofRTS with BRK. The
de]imiter
is
the character
"+".
The
general
lorm of rhis command is
I
a
I
Rtt delimiler OLD delimirer Ntw delimiler
tlineno.
linenol
L.AJ
In th
general
form, symbols within a pair
ofbrackets are optional
qualifiers
of
the command arld the symbols within braces
(A
and
Q)
are alternatives.