beautypg.com

HP NonStop G-Series User Manual

Page 250

background image

Range-Specifier Parameter

Range Summary

058061 Tandem Computers Incorporated

5–47

5.

The command:

*LIST F 10/12 25/L, "Tom" NUM 1/3 RANGE F/17 20
11 Tom, Tom
11 Tom, Tom
12 The piper's son
25 Was "Over the hills
26 And far away."
11 Tom, Tom
16 And Tom was beat,
17 And Tom went crying
*

Range-specifier

keyword

Line-range-list

String-range

The keyword NUM

signifies a

ordinal-range within

the string-range here.

Line-range-list

is performed in this order:

LIST F 10/12 25/L

LIST “Tom” NUM 1/3 RANGE F/17 20

EDIT first lists the text on the first line, lines 11 and 12, and lines 25
through the last line of the file (note there is no line 10, so EDIT cannot
list it). It then lists the first, second, and third lines that contain the
string Tom within the range of the first line through line 17 as well as
line 20.

This manual is related to the following products: