beautypg.com

HP NonStop G-Series User Manual

Page 227

background image

String-Range Parameter

Range Summary

5–24

058061 Tandem Computers Incorporated

5.

The command:

*LIST "he" COL 3:10

18 Down the street.

22 When he was young;

24 That he could play

*

lists the lines that contain the character string he between columns 3 and
10.

6.

The command:

*LIST WORD "as"

*

lists no lines because any occurrences of as do not meet the word
criteria explained previously in “How to Use the String-Range
Parameter.” (Compare with the next example.)

7.

The command:

*LIST "as" NUM 4

25 Was over the hill

*

lists the fourth line containing an occurrence of the string as in the file
(notice that the keyword WORD was omitted).

This manual is related to the following products: