HP NonStop G-Series User Manual
Page 245
Range-Specifier Parameter
Range Summary
5–42
058061 Tandem Computers Incorporated
How to Use the Range-
Specifier Parameter
Because the range-specifier parameter allows you to use the line-range-list
and string-range-list parameters, the following tips highlight specific
information you need to keep in mind when using any of the range-list
parameters.
Separate each line-range in a line-range-list with a space.
When you specify a line-range-list parameter, you can specify single
line numbers in any order, but you must specify the beginning-line and
ending-line of blocks of text in ascending order (lower to higher).
The string-range parameter allows you to use the keyword WORD
whenever you want EDIT to find only the words that match string. A
word is defined as (1) any character string that is preceded and
followed by a space or any character other than a number or letter or (2)
a character string that occurs at the end of a line. (See Example 2.)
A line-range-list following a string-range qualifies that string- range.
(See Examples 1 and 3.)
In the range-specifier syntax, the comma between the line- range-list
and the subsequent string-range defines these two elements as separate;
EDIT executes one independently of the other. (See Example 4.)
Rather than locating strings on specific numbered lines with the string-
range parameter, you can use the NUM ordinal-range- list option to
locate one or more strings in your file by the ordinal position (first,
third, tenth, and so on) of the line or lines containing that string. The
ordinal-range is always used as an option of the string-range
parameter. See the Ordinal-Range description for more information.