summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2007-07-01 12:49:51 +0000
committerPaolo Bonzini <bonzini@gnu.org>2008-01-09 16:12:27 +0100
commitc1067081c5fbfd98b3660370887666df18243587 (patch)
tree73d29bf8da3c9f621e981280a8e10bd2c27cbb7d /doc
parent4090489434224f32685ea3ee7a9623c92846c8fa (diff)
downloadsed-c1067081c5fbfd98b3660370887666df18243587.tar.gz
switch to GPLv3v4.1d
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-94
Diffstat (limited to 'doc')
-rw-r--r--doc/sed.111
-rw-r--r--doc/sed.x9
2 files changed, 17 insertions, 3 deletions
diff --git a/doc/sed.1 b/doc/sed.1
index 318b353..f5f6f22 100644
--- a/doc/sed.1
+++ b/doc/sed.1
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.28.
-.TH SED "1" "January 2007" "sed version 4.1b" "User Commands"
+.TH SED "1" "June 2007" "sed version 4.1d" "User Commands"
.SH NAME
sed \- stream editor for filtering and transforming text
.SH SYNOPSIS
@@ -281,7 +281,11 @@ line starting with line
.IR first .
For example, ``sed -n 1~2p'' will print all the odd-numbered lines in
the input stream, and the address 2~5 will match every fifth line,
-starting with the second. (This is an extension.)
+starting with the second.
+.I first
+can be zero; in this case, \*(sd operates as if it were equal to
+.IR step .
+(This is an extension.)
.TP
$
Match the last line.
@@ -312,6 +316,9 @@ matches the very first line of input the
form will be at the end of its range, whereas the
.RI 1, addr2
form will still be at the beginning of its range.
+This works only when
+.I addr2
+is a regular expression.
.TP
.IR addr1 ,+ N
Will match
diff --git a/doc/sed.x b/doc/sed.x
index 10fe1ee..20f24e3 100644
--- a/doc/sed.x
+++ b/doc/sed.x
@@ -231,7 +231,11 @@ line starting with line
.IR first .
For example, ``sed -n 1~2p'' will print all the odd-numbered lines in
the input stream, and the address 2~5 will match every fifth line,
-starting with the second. (This is an extension.)
+starting with the second.
+.I first
+can be zero; in this case, \*(sd operates as if it were equal to
+.IR step .
+(This is an extension.)
.TP
$
Match the last line.
@@ -262,6 +266,9 @@ matches the very first line of input the
form will be at the end of its range, whereas the
.RI 1, addr2
form will still be at the beginning of its range.
+This works only when
+.I addr2
+is a regular expression.
.TP
.IR addr1 ,+ N
Will match