beautypg.com

HP NonStop G-Series User Manual

Page 112

background image

CHANGE Command

EDIT Command Summary

058061 Tandem Computers Incorporated

4–33

then:

*CHANGE ALL "Tom"TOM" ALL
11 TOM, TOM
16 And TOM was beat
17 And TOM went crying
19 TOM, TOM
*

Line-range element

of the range-specifier

parameter

EDIT searches all lines and changes all occurrences of

Tom

that it finds

on a line to

TOM

.

2.

If line number 19 is the current line and the current 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."

then:

*CHANGE "TOM"tom" 11/*
11 tom, TOM
16 And tom was beat
17 And tom went crying
19 tom, TOM
*

Line-range element

of the range-specifier

parameter

Line-range element of the range-specifier parameter EDIT searches
lines 11 through 19 and changes the first occurrence of

TOM

that it finds

on a line to

tom

.

This manual is related to the following products: