home *** CD-ROM | disk | FTP | other *** search
- The line editing commands (see the "SUMMARY COMMAND_EDITING" topic) can be
- used. The Return, Enter, or <──┘ must be pressed after each command. In the
- following,
- [] indicates optional
- . = current line
- # = last line plus 1
- num = any line number ≤65529
- Commands may be entered in either case (that is, C is the same as c).
- Strings are case sensitive (that is, oldSTRING will not match OLDstring).
-
- EDLIN command: What it does:
-
- [±]num Edit the line at [relative] line <num>
-
- [start],[end],to,[repeat]C C(opy) lines <start> through <end> before line <to>
- <repeat> times.
- <start> defaults to .
- <end> defaults to .
- <repeat> defaults to 1
-
- [start],[end]D D(elete) lines <start> through <end>.
- <start> defaults to #
- <end> defaults to <start>
-
- E E(nd) the execution of EDLIN and write the updated file.
- The input file is saved with an extension of .BAK
-
- [to]I I(nsert) lines of text from the keyboard before line <to>,
- until a Ctrl-Break or Ctrl-Z and <──┘ are entered.
- <to> defaults to .
-
- [start],[end]L L(ist) lines <start> through <end> on the screen.
- <start> defaults to <end> minus 11, or 1 if <end>≤11
- <end> defaults to <start> plus 23
- L is equivalent to .-11,.+11L
-
- [start],[end],to,M M(ove) lines <start> through <end> before line <to>.
- <start> defaults to .
- <end> defaults to .
-
- [start][,end]P P(age) lines <start> through <end> on the screen and
- set . to <end> plus 1.
- <start> defaults to . plus 1
- <end> defaults to <start> plus 23
-
- Q Q(uit) the execution of EDLIN, without modifying the input
- file in any way.
-
- [start][,end][?]R[oldstring]F6[newstring]
- R(eplace) all occurrences of <oldstring> with <newstring>
- in lines <start> through <end>.
- <start> defaults to . plus 1
- <end> defaults to #
- ? prompts for a Y or n before each replacement
- Function Key F6 enters a Ctrl-Z to separate the two strings
- <string>s can contain control characters (see the HINTS topic)
- <oldstring> defaults to the previously entered value
- <newstring> defaults to the empty string
-
- [start][,end][?]S[oldstring]
- S(earch) for an occurrence of <oldstring> in lines <start>
- through <end>. Set . to the line containing <oldstring>.
- <start> defaults to . plus 1
- <end> defaults to #
- ? prompts for a Y or n to continue searching
- after finding a match.
- <oldstring> defaults to the previously entered value
-
- [num]T[d:]filename[.ext] T(ransfer) (read) the file <filename[.ext]> into
- the file being edited before line <num>.
- <num> defaults to .
-
- EDLIN commands used with files too large to fit in memory:
- [num]A A(ppend) (read) the next [num] lines from the large input
- file being edited into memory after line #.
- <num> defaults to a fairly large number
-
- [num]W W(rite) lines 1 through <num> to disk for the large file
- being edited, after any previously written text, and delete
- them from memory. Set . to 1.
- <num> defaults to a fairly large number