summaryrefslogtreecommitdiff
path: root/sys/man/1/sed
diff options
context:
space:
mode:
authoraiju <aiju@phicode.de>2011-06-03 13:27:04 +0200
committeraiju <aiju@phicode.de>2011-06-03 13:27:04 +0200
commiteadeb86f5132ca1cd5595179fe5a503ec69dca4a (patch)
tree658867c1f05bbed02c229c416d2693723a9fbf95 /sys/man/1/sed
parent7a4e46d7abb4d1cd95bbe2143e0b42c76568e505 (diff)
fixed issue #29
Diffstat (limited to 'sys/man/1/sed')
-rw-r--r--sys/man/1/sed24
1 files changed, 24 insertions, 0 deletions
diff --git a/sys/man/1/sed b/sys/man/1/sed
index 6bb2e6123..e057b7192 100644
--- a/sys/man/1/sed
+++ b/sys/man/1/sed
@@ -255,6 +255,30 @@ Append the pattern space to
if a replacement
was made.
.RE
+.IP
+An ampersand
+.L &
+appearing in the replacement
+is replaced by the string matching the regular expression.
+The characters
+.BI \e n\f1,
+where
+.I n
+is a digit,
+are replaced by the text matched by the
+.IR n -th
+regular subexpression
+enclosed between
+.L (
+and
+.LR ) .
+When
+nested parenthesized subexpressions
+are present,
+.I n
+is determined by counting occurrences of
+.L (
+starting from the left.
.TP
.BI t " label"
Test.