beautypg.com

HP NonStop G-Series User Manual

Page 241

background image

Ordinal-Range-List Parameter

Range Summary

5–38

058061 Tandem Computers Incorporated

1.

The command:

*LIST "k" NUM F 3 6
13.1 A pocket full of rye.
13.3 Baked in a pie.
24 Along came a blackbird
*

Separate the

ordinal-ranges

with spaces.

lists the first, third, and sixth lines that contain the string k in the text.
EDIT ignores the line numbers when interpreting an ordinal-range or
ordinal-range-list parameter.

2.

The command:

*LIST BOTH "the" NUM 2 4/L
15 The birds began to sing.
17 The king was in his counting-house
20 The queen was in the parlor
22 The maid was in the garden
23 Hanging up the clothes.
*

Separates the lower

and higher line

numbers defining

an ordinal-range.

lists the second then the fourth through last lines that contain the string
the (qualified by the keyword BOTH, so EDIT ignores case when
searching for the string).

3.

As the GET command can be used to move lines into your current file
from other files, the GET command accepts the ordinal-range-list
parameter to reference the ordinal positions of lines in a file rather than
strings. Suppose for the following example that the EDIT file named
TART contains these lines:

33 The Queen of Hearts

34 Baked some tarts

35 All on a summer's day.

36 The Knave of Hearts

37 He stole those tarts

38 And took them clean away.

This manual is related to the following products: