System information
A final line editing function, called the Juxtaposition comniand, takes the form
nJs1^Zs2^Zs3<cr>
or
nJs1^Zs2^Zs3^Z
with the following action applied n times to the memory buffer: search from the current CP for
the next occurrence of the string S1. If found, insert the string S2, and move CP to follow S2.
Then delete all characters following CP up to, but not including, the string S3, leaving CP
directly after S2. If S3 cannot be found, then no deletion is made. If the current line is
NOW IS THE TIME<cr><If>
the command
JW^ZWHAT^Z^1<cr>
results in
NOW WHAT<cr><If>
You should recall that ^l (CTRL-L) represents the pair <cr><lf> in search and substitute strings.
The number of characters ED allows in the F, S, N, and j commands is limited to 100 symbols.
2.1.8 Source Libraries
ED also allows the inclusion of source libraries during the editing process with the R command.
The form of this command is
Rfilename^Z
or
Rfilename<cr>
2.1 Introduction to ED CP/M Operating System Manual
2-15