Edit command summary, Replace command – HP NonStop G-Series User Manual

Page 182

Advertising
background image

REPLACE Command

EDIT Command Summary

058061 Tandem Computers Incorporated

4–103

2.

Suppose the current file contains these lines:

100 What a piece of work is a man!

101 how noble in reason!

102 how infinite in faculty!

103 in form and moving how express and admirable!

104 in action how like an angel!

105 in apprehension how like a god!

In the following series of commands, you tell EDIT to replace the
contents of lines 100 through 102, to delete lines 103 through 105, and to
list the results:

*REPLACE 100/105

100 What a piece of work is a man!

100 Unless above himself he can

101 how noble in reason!

101 Erect himself,

102 how infinite in faculty!

102 how poor a thing is man!

103 in form and moving how express and admirable!

103 //

SHALL I DELETE THE REMAINING LINES? y

104 in action how like an angel!

105 in apprehension how like a god!

*LIST ALL

100 Unless above himself he can

101 Erect himself,

102 how poor a thing is man

*

Advertising
This manual is related to the following products: