home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / edlin / commands.hlp next >
Encoding:
Text File  |  1989-01-01  |  3.0 KB  |  82 lines

  1. The line editing commands (see the "SUMMARY COMMAND_EDITING" topic) can be 
  2. used. The Return, Enter, or <──┘ must be pressed after each command. In the 
  3. following, 
  4.         [] indicates optional
  5.         . = current line 
  6.         # = last line plus 1
  7.         num = any line number ≤65529
  8. Commands may be entered in either case (that is, C is the same as c).
  9. Strings are case sensitive (that is, oldSTRING will not match OLDstring).
  10.  
  11. EDLIN command:    What it does:
  12.  
  13. [±]num        Edit the line at [relative] line <num>
  14.  
  15. [start],[end],to,[repeat]C C(opy) lines <start> through <end> before line <to>
  16.         <repeat> times. 
  17.          <start> defaults to . 
  18.          <end> defaults to . 
  19.          <repeat> defaults to 1
  20.  
  21. [start],[end]D    D(elete) lines <start> through <end>.
  22.          <start> defaults to # 
  23.          <end> defaults to <start>
  24.  
  25. E        E(nd) the execution of EDLIN and write the updated file.
  26.         The input file is saved with an extension of .BAK
  27.  
  28. [to]I        I(nsert) lines of text from the keyboard before line <to>,
  29.         until a Ctrl-Break or Ctrl-Z and <──┘ are entered.
  30.          <to> defaults to .
  31.  
  32. [start],[end]L    L(ist) lines <start> through <end> on the screen.
  33.          <start> defaults to <end> minus 11, or 1 if <end>≤11
  34.          <end> defaults to <start> plus 23
  35.          L is equivalent to .-11,.+11L
  36.  
  37. [start],[end],to,M    M(ove) lines <start> through <end> before line <to>.
  38.          <start> defaults to . 
  39.          <end> defaults to . 
  40.  
  41. [start][,end]P    P(age) lines <start> through <end> on the screen and
  42.         set . to <end> plus 1.
  43.          <start> defaults to . plus 1
  44.          <end> defaults to <start> plus 23
  45.  
  46. Q        Q(uit) the execution of EDLIN, without modifying the input
  47.         file in any way.
  48.  
  49. [start][,end][?]R[oldstring]F6[newstring]
  50.         R(eplace) all occurrences of <oldstring> with <newstring>
  51.         in lines <start> through <end>. 
  52.          <start> defaults to . plus 1
  53.          <end> defaults to #
  54.          ? prompts for a Y or n before each replacement
  55.          Function Key F6 enters a Ctrl-Z to separate the two strings 
  56.          <string>s can contain control characters (see the HINTS topic)
  57.          <oldstring> defaults to the previously entered value
  58.          <newstring> defaults to the empty string
  59.  
  60. [start][,end][?]S[oldstring]
  61.         S(earch) for an occurrence of <oldstring> in lines <start>
  62.         through <end>. Set . to the line containing <oldstring>.
  63.          <start> defaults to . plus 1
  64.          <end> defaults to #
  65.          ? prompts for a Y or n to continue searching
  66.             after finding a match.
  67.          <oldstring> defaults to the previously entered value
  68.  
  69. [num]T[d:]filename[.ext]  T(ransfer) (read) the file <filename[.ext]> into 
  70.         the file being edited before line <num>.
  71.          <num> defaults to .
  72.  
  73. EDLIN commands used with files too large to fit in memory:
  74. [num]A        A(ppend) (read) the next [num] lines from the large input
  75.         file being edited into memory after line #.
  76.          <num> defaults to a fairly large number
  77.  
  78. [num]W        W(rite) lines 1 through <num> to disk for the large file
  79.         being edited, after any previously written text, and delete
  80.         them from memory. Set . to 1.
  81.          <num> defaults to a fairly large number
  82.