beautypg.com

Range summary, 5–23 2. the command – HP NonStop G-Series User Manual

Page 226

background image

String-Range Parameter

Range Summary

058061 Tandem Computers Incorporated

5–23

2.

The command:

*LIST BOTH WORD "he"

14 And away he run.

21 He learned to play

23 When he was young;

24 That he could play

*

lists every line in the file that contains the word he, HE, He, or hE.

3.

The command:

*LIST NOT BOTH "tom"

12 The piper's son

13 Stole a pig

14 And away he run.

15 The pig was eat

18 Down the street.

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."

*

lists the lines in the file that do not contain the character string tom,
Tom, TOm, TOM, tOM,
or toM.

4.

The command:

*LIST "Tom" COL 1

11 Tom, Tom

19 Tom, Tom

*

lists the lines that contain the character string Tom, starting in column 1.

This manual is related to the following products: