beautypg.com

Tpsec05, 5 range summary, Introduction to ranges – HP NonStop G-Series User Manual

Page 204

background image

5 Range Summary

058061 Tandem Computers Incorporated

5–1

Introduction to Ranges

Most of EDIT commands require you to specify a range parameter. A range
parameter tells the command which line or lines of text, column or
columns, or specific string or strings to operate on.

Assume you have an EDIT file named AESOP that contains the lines:

12 The boy called out "Wolf, Wolf!"

13 and the villagers came out to help him.

14 A few days afterward he tried the same trick,

15 and again they came to his help.

16 Shortly after this a Wolf actually came,

17 but this time the villagers thought the boy was

18 deceiving them again and nobody came to his help.

19

20

21 A liar will not be believed, even when he speaks

22 the truth.

A line of text is all the characters that have the same line number. For
example, the characters:

The boy called out "Wolf, Wolf!"

are one line of text with the line number 12.

A group of text is two or more contiguous lines of text. For example, the
lines:

A few days afterward he tried the same trick,

and again they came to his help.

Shortly after this a Wolf actually came,

are a group of text with the beginning-line number 14 and the ending-line
number 16.

This manual is related to the following products: