| 1 |
<HTML> |
| 2 |
<HEAD> |
| 3 |
<TITLE>Line editor (Appendix 1)</TITLE> |
| 4 |
</HEAD> |
| 5 |
<BODY BACKGROUND="/back_fbb.jpg"> |
| 6 |
<P> |
| 7 |
<IMG SRC="/fbb.gif" WIDTH="32" HEIGHT="32"> |
| 8 |
<H1 ALIGN=Center> |
| 9 |
How to use the line-editor. |
| 10 |
</H1> |
| 11 |
<P ALIGN=Center> |
| 12 |
(Appendix 1) |
| 13 |
<PRE> |
| 14 |
The FBBDOS offers a small line editor allowing the process of ASCII |
| 15 |
files. It can help the remote SysOp to maintain the system files of |
| 16 |
the software. |
| 17 |
|
| 18 |
The commands are straightforward, and for better efficiency, they can |
| 19 |
be chained on a single line. |
| 20 |
|
| 21 |
Here are the available commands: |
| 22 |
|
| 23 |
|
| 24 |
<FONT COLOR="#ff0000">?</FONT> : Shows all commands that can be used in the editor. |
| 25 |
|
| 26 |
<FONT COLOR="#ff0000">A</FONT> : Adds a line after the current line. The text for the new line |
| 27 |
shall follow the letter A. If more commands are to follow after |
| 28 |
the text, the text must be ended with a "/" before next command. If |
| 29 |
the sign "/" itself is to used in the text, a "\" must be written |
| 30 |
just before the "/". If again the "\" is to be used inside the text |
| 31 |
as a valid character, it must be written twice ("\\"). |
| 32 |
The pointer will be at the start of the new line. |
| 33 |
|
| 34 |
<FONT COLOR="#ff0000">B</FONT> : Go to start of file. |
| 35 |
|
| 36 |
<FONT COLOR="#ff0000">E</FONT> : Go to end of file. |
| 37 |
|
| 38 |
<FONT COLOR="#ff0000">F</FONT> : Search for the first occurrence of a character (or string of |
| 39 |
characters) in the file. The search starts at the current line. |
| 40 |
The string of characters must be ended with a "/" if more commands |
| 41 |
are chained (se the paragraph on the A-command). |
| 42 |
|
| 43 |
<FONT COLOR="#ff0000">I</FONT> : Insert a line before the current line. Read about ending with a |
| 44 |
"/" in the paragraph on the A-command. |
| 45 |
|
| 46 |
<FONT COLOR="#ff0000">K</FONT> : Delete the number of lines that are stated just before the letter K. |
| 47 |
Example: 3K |
| 48 |
If no number is used, then 1 line is deleted. |
| 49 |
|
| 50 |
<FONT COLOR="#ff0000">L</FONT> : Move a number of lines from the current line. The number can be |
| 51 |
negative to move towards the start of the file. |
| 52 |
Examples: 5L -10L |
| 53 |
|
| 54 |
<FONT COLOR="#ff0000">N</FONT> : Toggle line-numbering on/off. |
| 55 |
|
| 56 |
<FONT COLOR="#ff0000">P</FONT> : Show a number of lines from the current line. Example 8P. This |
| 57 |
will show 8 lines, starting with the current line. |
| 58 |
|
| 59 |
<FONT COLOR="#ff0000">R</FONT> : Search and replace. Search for a string of characters and replace it |
| 60 |
with a new one. Example: RALL/ALLE will replace all ALL with ALLE |
| 61 |
from the current line to the end of the file. |
| 62 |
|
| 63 |
<FONT COLOR="#ff0000">S</FONT> : Save file. |
| 64 |
|
| 65 |
<FONT COLOR="#ff0000">Q</FONT> : Exit the editor without saving the file. |
| 66 |
|
| 67 |
|
| 68 |
Examples:: |
| 69 |
|
| 70 |
|
| 71 |
"EDIT>B5L10P" sets pointer at start of file. Move 5 lines down, and |
| 72 |
show 10 lines from there. |
| 73 |
|
| 74 |
"EDIT>B4L6K-2L1OP" sets the pointer to the start of file. Move down |
| 75 |
4 lines. Delete 6 lines. Move back 2 lines, and show |
| 76 |
10 lines. |
| 77 |
|
| 78 |
"EDIT>BFBonjour/K-2L5P" sets the pointer to the start of file, |
| 79 |
searches for "Bonjour", deletes the line containing |
| 80 |
"Bonjour", moves back 2 lines and shows 5 lines. |
| 81 |
* |
| 82 |
"EDIT>BFBonjour/IC'est une nouvelle ligne avec un \/ dedans/-1L3P" |
| 83 |
sets the pointer to start of file. Searches for |
| 84 |
"Bonjour", inserts the new line. The new line also |
| 85 |
contains the character "/". Goes back 1 line and |
| 86 |
shows 3 lines. |
| 87 |
|
| 88 |
"EDIT>SQ" save file and quit the editor. |
| 89 |
|
| 90 |
|
| 91 |
<A HREF="doc.htm"><IMG SRC="/contents.gif" WIDTH="108" HEIGHT="28"></A> |
| 92 |
|
| 93 |
<A HREF="/"><IMG SRC="../button_home.gif" WIDTH="90" HEIGHT="29"></A> |
| 94 |
|
| 95 |
<FONT COLOR="#800000">This page was last updated <!--#config timefmt="%d-%b-%y"--><!--#echo var="LAST_MODIFIED"--></FONT> |
| 96 |
|
| 97 |
|
| 98 |
</PRE> |
| 99 |
</BODY></HTML> |