diff options
author | ru <ru@FreeBSD.org> | 2004-07-02 22:22:35 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-07-02 22:22:35 +0000 |
commit | fb1d8b3724cde10863de04d2c0884fbc5035eeef (patch) | |
tree | b3cdbab3d24866d3829616606f702cb5cb5d6c97 /usr.bin/sed | |
parent | 2334c79a7573e958e33d5cc7301829244e5d216f (diff) | |
download | FreeBSD-src-fb1d8b3724cde10863de04d2c0884fbc5035eeef.zip FreeBSD-src-fb1d8b3724cde10863de04d2c0884fbc5035eeef.tar.gz |
Mechanically kill hard sentence breaks.
Diffstat (limited to 'usr.bin/sed')
-rw-r--r-- | usr.bin/sed/sed.1 | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/usr.bin/sed/sed.1 b/usr.bin/sed/sed.1 index 8d6ce4a1..cbb219e 100644 --- a/usr.bin/sed/sed.1 +++ b/usr.bin/sed/sed.1 @@ -155,16 +155,21 @@ A command line with no addresses selects every pattern space. A command line with one address selects all of the pattern spaces that match the address. .Pp -A command line with two addresses selects an inclusive range. This +A command line with two addresses selects an inclusive range. +This range starts with the first pattern space that matches the first -address. The end of the range is the next following pattern space -that matches the second address. If the second address is a number +address. +The end of the range is the next following pattern space +that matches the second address. +If the second address is a number less than or equal to the line number first selected, only that -line is selected. In the case when the second address is a context +line is selected. +In the case when the second address is a context address, .Nm does not re-match the second address against the -pattern space that matched the first address. Starting at the +pattern space that matched the first address. +Starting at the first line following the selected range, .Nm starts looking again for the first address. @@ -212,7 +217,7 @@ One special feature of .Nm regular expressions is that they can default to the last regular expression used. -If a regular expression is empty, i.e. just the delimiter characters +If a regular expression is empty, i.e., just the delimiter characters are specified, the last regular expression encountered is used instead. The last regular expression is defined as the last regular expression used as part of an address or substitute command, and at run-time, not @@ -537,7 +542,9 @@ extension and may not be available on other operating systems. .Sh HISTORY A .Nm -command, written by L. E. McMahon, appeared in +command, written by +.An L. E. McMahon , +appeared in .At v7 . .Sh AUTHORS .An "Diomidis D. Spinellis" Aq dds@FreeBSD.org |