Loading an ascii file into the text buffer, Listing the contents of the text buffer, Adding lines of text to the text buffer – Alcatel Carrier Internetworking Solutions Omni Switch/Router User Manual

Page 194

Advertising
background image

Editing Text Files

Page 7-8

Loading an ASCII File into the Text Buffer

You can use the

rb

command to load—or read—an existing

ASCII

file in flash memory to the

Edit buffer’s memory. To use this command, enter

rb

, followed by the file you wish to edit.

For example, to edit the

mpx.cmd

file, enter

rb mpx.cmd

at the system prompt.

Loading Binary Files

You can load a binary file into the Edit buffer but you
will not be able to edit it.

Listing the Contents of the Text Buffer

The

lb

command is used to list the contents of the Edit buffer’s memory. To use this

command, enter

lb

at the system prompt. If there is something in the buffer, the system will display the contents
numbered from the zero. The following display is a typical example:

00: cmDoDump=1
01: cmInit

If there is nothing in the buffer, nothing will be displayed.

Adding Lines of Text to the Text Buffer

You can use the

ab

command to manually add lines of text to the Edit sub-menu. Note that

the lines you enter are appended at the end of the buffer. For example, if there are 10 lines of
text in the buffer, you will begin entering text at the 11th line. If the buffer is empty, the line
of text you enter will be the first line of text in the buffer.

To add text to the buffer, enter

ab

at the system prompt. A screen similar to the one shown below will be displayed:

02 :

Enter your text and press the

<Enter>

key to add the text to the buffer. If the buffer is not full,

the system will prompt you to enter another line of text. If the buffer is full (i.e., there are 100
lines in the text buffer), the following message will be displayed.

Buffer Full!

To exit the

ab

command, type a period (.) and press

<Enter>

.

Advertising