03.03.2013 Views

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.6 Advanced ED Commands <strong>CP</strong>/M 3 User's Guide<br />

The character pointer moves to the beginning of the third line where the second<br />

occurrence of the word "living" is located. To display the line, combine the find<br />

command with a type command. Note that if you follow an F command with another<br />

ED command on the same line, you must terminate the string with a CTRL-Z, as<br />

follows<br />

1 : *2fliving^Z0lt<br />

3: *the mere sense of living<br />

It makes a difference whether you enter the F command in upper- or lower-case. If<br />

you enter F, ED internally translates the argument string to upper-case. If you specify<br />

fl ED looks for an exact match. For example, Fcp/m 3 searches for <strong>CP</strong>/M 3 but<br />

fcp/m 3 searches for cp/m 3, and cannot find <strong>CP</strong>/M 3.<br />

If ED does not find a match for the string in the memory buffer, it issues the<br />

message,<br />

BREAK "#" AT<br />

where the symbol # indicates that the search failed during the execution of an F<br />

command.<br />

The N Command<br />

The N command extends the search function beyond the memory buffer to include<br />

the source file. If the search is successful, it leaves the <strong>CP</strong> pointing to the first character<br />

after the search string. The N command takes the form:<br />

nNstring<br />

where n is the occurrence of the string to be found. If no number is entered, ED<br />

looks for the next occurrence of the string in the file. The case of the N command<br />

has the same effect on an N command as it does on an F command. Note that if you<br />

follow an N command with another ED command, you must terminate the string<br />

with a CTRL-Z.<br />

6-22

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!