beautypg.com

The list command: listing lines in your file – HP NonStop G-Series User Manual

Page 41

background image

The LIST Command: Listing Lines in Your File

Adding and Displaying Text

058061 Tandem Computers Incorporated

2–5

The LIST Command:

Listing Lines in

Your File

To list the lines in your file, use the LIST command. The LIST command
allows you to:

List a single line

List a range of lines

List lines containing a specific character string

List all lines in a file

Suppose that your file contains these lines:

1 Jack be nimble

1.1 Jack be quick

1.2 Jack jump over the candlestick.

2 Jack and Jill

2.1 Went up a hill

3 To fetch a pail of water.

4 Jack fell down

5 And broke his crown

6 And Jill came tumbling after.

You can list a single line of your file by typing:

*LIST 1

1 Jack be nimble

*

If you then press

RETURN

without typing a command at the prompt (*),

EDIT lists the next line of text in your file. For example:

*LIST 1
1 Jack be nimble
* RETURN
1.1 Jack be quick
* RETURN
1.2 Jack jump over the candlestick
*

Lists the text on

line number 1.2

Lists the text on

line number 1.1

Lists line 1

This manual is related to the following products: