--- ed.info Mon Dec 4 15:56:44 2000 +++ my_ed.info Thu Jul 12 13:34:28 2001 @@ -245,11 +245,11 @@ An address range is two addresses separated either by a comma or semicolon. The value of the first address in a range cannot exceed the -value of the the second. If only one address is given in a range, then -the second address is set to the given address. If an N-tuple of -addresses is given where N > 2, then the corresponding range is -determined by the last two addresses in the N-tuple. If only one -address is expected, then the last address is used. +value of the second. If only one address is given in a range, then the +second address is set to the given address. If an N-tuple of addresses +is given where N > 2, then the corresponding range is determined by the +last two addresses in the N-tuple. If only one address is expected, +then the last address is used. Each address in a comma-delimited range is interpreted relative to the current address. In a semicolon-delimited range, the first address @@ -322,7 +322,7 @@ prints all lines containing STRING. Regular expressions are also used by the `s' command for selecting old text to be replaced with new. - In addition to a specifying string literals, regular expressions can + In addition to specifying string literals, regular expressions can represent classes of strings. Strings thus represented are said to be matched by the corresponding regular expression. If it is possible for a regular expression to match several strings in a line, then the @@ -459,7 +459,7 @@ ******** All `ed' commands are single characters, though some require -additonal parameters. If a command's parameters extend over several +additional parameters. If a command's parameters extend over several lines, then each line except for the last must be terminated with a backslash (`\'). @@ -572,8 +572,10 @@ (zero). The current address is set to the last line moved. `(.,.)n' - Prints the addressed lines along with their line numbers. The - current address is set to the last line printed. + Prints the addressed lines along with their line numbers. If + invoked from a terminal, `ed' pauses at the end of each page until + a newline is entered. The current address is set to the last line + printed. `(.,.)p' Prints the addressed lines. If invoked from a terminal, `ed' @@ -610,10 +612,10 @@ Replaces text in the addressed lines matching a regular expression RE with REPLACEMENT. By default, only the first match in each line is replaced. If the `g' (global) suffix is given, then every - match to be replaced. The `n' suffix, where N is a postive - number, causes only the Nth match to be replaced. It is an error - if no substitutions are performed on any of the addressed lines. - The current address is set the last line affected. + match is replaced. The `n' suffix, where N is a positive number, + causes only the Nth match to be replaced. It is an error if no + substitutions are performed on any of the addressed lines. The + current address is set to the last line affected. RE and REPLACEMENT may be delimited by any character other than space and newline (see the `s' command below). If one or two of @@ -633,10 +635,10 @@ accepts a count suffix N, or any combination of the characters `r', `g', and `p'. If a count suffix N is given, then only the Nth match is replaced. The `r' suffix causes the regular - expression of the last search to be used instead of the that of - the last substitution. The `g' suffix toggles the global suffix - of the last substitution. The `p' suffix toggles the print suffix - of the last substitution The current address is set to the last + expression of the last search to be used instead of that of the + last substitution. The `g' suffix toggles the global suffix of + the last substitution. The `p' suffix toggles the print suffix of + the last substitution. The current address is set to the last line affected. `(.,.)t(.)'