beautypg.com

HP NonStop G-Series User Manual

Page 248

background image

Range-Specifier Parameter

Range Summary

058061 Tandem Computers Incorporated

5–45

2.

The command:

*LIST WORD "Tom" RANGE WORD "And"
16 And Tom was beat
17 And Tom went crying
*

String-range

String-range

Range-specifier keyword

lists the lines that contain both the words Tom and And. The RANGE
keyword and the string-range “And” work together to specify the
range criteria for this LIST command.

3.

The command:

*LIST NOT BOTH "the", "son" RANGE 11/14 24/L
11 Tom, Tom
13 Stole a pig
14 And away he run.
16 And Tom was beat,
17 And Tom went crying
19 Tom, Tom
21 He learned to play
22 When he was young;
24 That he could play
26 And far away."
12 The piper's son
*

Line-range-list

String-range

String-range

Range-specifier keyword

is performed in this order:

LIST NOT BOTH “the”

LIST “son” RANGE 11/14 24/L

EDIT lists the lines throughout the file that do not contain the character
string the, The, THe, THE, tHE, or thE, then lists the lines within the
specified line-range (lines 11 through 14 and 24 through the last line)
that contain the string son.

This manual is related to the following products: