HP 3000 Manuals

MODIFY [ HPTOOLSET XL Reference Manual ] MPE/iX 5.0 Documentation


HPTOOLSET XL Reference Manual

MODIFY 

Allows you to change lines of text in your edit file by (D)eleting,
(I)nserting, or (R)eplacing characters or blocks of characters.  Modify
can be canceled with the UNDO command.

Syntax 

     M[ODIFY] [line rangelist]

Parameters 

Line Rangelist   Defines the line or lines you want to modify.  If no
                 line rangelist is specified, the current line will be
                 changed.

                 If more than one range is specified, separate them with
                 commas.

                 A line range has the form:  ALL or n[/n], where n is a
                 line number F[IRST], L[AST], *, or an expression
                 involving any of these and a plus sign (+) or minus sign
                 (-) The * means the current line.  For example, L - 10/L
                 would print the last 11 lines of the file; * + 5/20, if
                 the current line is 3, would print lines 9 through 20.

Description 

When you enter the MODIFY command, the lines you specify in the rangelist
will be listed by number on your terminal screen.  To perform one of the
MODIFY functions, place a D, I, or R under the character(s) you want
changed.

To cancel a previous Insert, Delete, or Replace, enter a U on the same
line you just modified.  The first (U)ndo returns you to the previous
level of modifications.

When you do not want to make any additional changes to the line, press
return.  To exit the modify mode, enter [[CONTROL]]Y. Your line will be
left unchanged.

Example 

     >>MODIFY 15
     15                  ABCDEFFGIJK
                               D IH
     15                  ABCDEFGHIJK

Displays line 15 of your edit file and (d)eletes the second F. It then
(i)nserts an 'H' between G and I.

     >>MODIFY 8
     8                   12445678
                           R3
     8                   12345678

Displays line 8 of your edit file and (r)eplaces the first 4 with a 3.


MPE/iX 5.0 Documentation