1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Line editor (Appendix 1)</title>
</head>
<body background="/back_fbb.jpg">
<h1 align="Center"> How to use the line-editor. </h1>
<p align="Center"> (Appendix 1) </p>
<pre> The FBBDOS offers a small line editor allowing the process of ASCII <br>files. It can help the remote SysOp to maintain the system files of <br>the software.<br><br> The commands are straightforward, and for better efficiency, they can<br>be chained on a single line.<br><br>Here are the available commands:<br><br><br><font color="#ff0000">?</font> : Shows all commands that can be used in the editor.<br><br><font color="#ff0000">A</font> : Adds a line after the current line. The text for the new line<br> shall follow the letter A. If more commands are to follow after<br> the text, the text must be ended with a "/" before next command. If <br> the sign "/" itself is to used in the text, a "\" must be written <br> just before the "/". If again the "\" is to be used inside the text<br> as a valid character, it must be written twice ("\\"). <br> The pointer will be at the start of the new line.<br> <br><font color="#ff0000">B</font> : Go to start of file.<br> <br><font color="#ff0000">E</font> : Go to end of file.<br><br><font color="#ff0000">F</font> : Search for the first occurrence of a character (or string of <br> characters) in the file. The search starts at the current line.<br> The string of characters must be ended with a "/" if more commands<br> are chained (se the paragraph on the A-command).<br> <br><font color="#ff0000">I</font> : Insert a line before the current line. Read about ending with a<br> "/" in the paragraph on the A-command.<br><br><font color="#ff0000">K</font> : Delete the number of lines that are stated just before the letter K.<br> Example: 3K<br> If no number is used, then 1 line is deleted.<br> <br><font color="#ff0000">L</font> : Move a number of lines from the current line. The number can be <br> negative to move towards the start of the file.<br> Examples: 5L -10L<br> <br><font color="#ff0000">N</font> : Toggle line-numbering on/off.<br><br><font color="#ff0000">P</font> : Show a number of lines from the current line. Example 8P. This<br> will show 8 lines, starting with the current line.<br> <br><font color="#ff0000">R</font> : Search and replace. Search for a string of characters and replace it<br> with a new one. Example: RALL/ALLE will replace all ALL with ALLE<br> from the current line to the end of the file. <br> <br><font color="#ff0000">S</font> : Save file.<br><br><font color="#ff0000">Q</font> : Exit the editor without saving the file.<br><br><br>Examples::<br><br><br> "EDIT>B5L10P" sets pointer at start of file. Move 5 lines down, and<br> show 10 lines from there.<br> <br> "EDIT>B4L6K-2L1OP" sets the pointer to the start of file. Move down<br> 4 lines. Delete 6 lines. Move back 2 lines, and show<br> 10 lines.<br> <br> "EDIT>BFBonjour/K-2L5P" sets the pointer to the start of file,<br> searches for "Bonjour", deletes the line containing<br> "Bonjour", moves back 2 lines and shows 5 lines.<br> * <br> "EDIT>BFBonjour/IC'est une nouvelle ligne avec un \/ dedans/-1L3P"<br> sets the pointer to start of file. Searches for<br> "Bonjour", inserts the new line. The new line also<br> contains the character "/". Goes back 1 line and<br> shows 3 lines.<br> <br> "EDIT>SQ" save file and quit the editor.<br> <br><br>
<font color="#800000">This page was last updated 17-Apr-99</font>
</pre>
</body>
</html>
|