beautypg.com

HP NonStop G-Series User Manual

Page 111

background image

CHANGE Command

EDIT Command Summary

4–32

058061 Tandem Computers Incorporated

How to Use CHANGE

The quotes (“) surrounding

oldstring

and

newstring

are string-

field separators. EDIT also accepts an apostrophe (’) and a slash (/) as a
string-field separator. You must, however, use the same separator
character throughout a CHANGE command.

When you give a left column number and a right column number in a
column-range-list parameter, the right column number must be equal
to or greater than the left column number (for example, 5:5 is valid,
FIRST:LAST is valid, 15:7 is not valid). The

newstring

variable is a

character string. (See “Changing Columns to a String,” Examples 1 and
2, following.)

You can specify columns 1 through 239.

Examples

Changing an Existing String to a New String

1.

If your current EDIT file is:

11 Tom, Tom

12 The piper's son

13 Stole a pig

14 And away he run.

15 The pig was eat

16 And Tom was beat,

17 And Tom went crying

18 Down the street.

19 Tom, Tom

20 The piper's son

21 He learned to play

22 When he was young;

23 But all the tunes

24 That he could play

25 Was "Over the hills

26 And far away."

This manual is related to the following products: