Range summary 5–26, The command – HP NonStop G-Series User Manual
Page 229
![background image](/manuals/397048/229/background.png)
String-Range-List Parameter
Range Summary
5–26
058061 Tandem Computers Incorporated
1.
The command:
*LIST BOTH "you", "yes"
18 Have you any wool?
26 Have you any wool?
19 Yes sir, yes sir
27 Yes sir, yes sir
*
Separate the two
string-range parameters
with a comma.
Lists all lines containing
the first string, then all
lines containing the
second string
lists all the lines containing either of the strings you or yes.
2.
The command:
*LIST "ba" COL 1:7, BOTH "b"
17 Baa baa black sheep
25 Baa baa black sheep
17 Baa baa black sheep
20 Three bags full.
23 One for the little boy
25 Baa baa black sheep
28 Three bags full.
*
lists all the lines containing the character string ba in the first seven
columns, then lists all lines containing the character string b. As EDIT
lists all lines that contain the first string- range of the string-range-list
parameter, then all lines that contain the next string-range, and so on,
some overlap might occur (as in the preceding example).
3.
The command:
*LIST BOTH "yes" NUM 2, "a" NUM 5
27 Yes sir, yes sir
22 One for the dame
*
lists the second line that contains the string yes and the fifth line that
contains the string a.