beautypg.com

The join command: lengthening and shortening lines – HP NonStop G-Series User Manual

Page 59

background image

The JOIN Command: Lengthening and Shortening Lines

Revising Text in Your File

3–16

058061 Tandem Computers Incorporated

The JOIN Command:

Lengthening and

Shortening Lines

EDIT enables you to lengthen or shorten lines of text in your file. The JOIN
command lengthens lines to a certain line width by adding one or more
words from the next line to your current line. To shorten lines to a certain
line width, JOIN breaks off one or more words and adds them to the next
line.

You can instruct EDIT to join your text to your exact specifications. Use the
JOIN command to:

Adjust the width of two or more lines of text to an automatic width of
70 characters

Adjust the width of two or more lines of text to a width that you specify
between 1 and 255 characters

First, review your file by listing all the lines:

*LIST ALL

1 Old King Cole

1.01 was a merry old soul

1.1 And a merry old soul was he;

1.2 He called for his pipe, and he called for his bowl,

2 And he called for his fiddlers three.

3 Every fiddler, he had a fine fiddle

4 And a very fine fiddle had he;

5 Oh there's none so rare as can compare

6 With King Cole and his fiddlers three.

*

You then use the JOIN command to lengthen or shorten the lines in your
file. If you don’t specify a join width, EDIT uses 70 as the width for joining
the lines. (See the description of the SET command in Section 4 for more
information on JOIN and line widths.) For example:

*JOIN 1/1.01
1 Old King Cole was a merry old soul
*

Joining didn't exceed 70.

Or, to control the maximum width of your lines, you can specify the line
width when you use the JOIN command. If you specify a line width, you
must also use the keyword WIDTH in the command line.

This manual is related to the following products: