aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/sed
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2001-08-07 15:48:51 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2001-08-07 15:48:51 +0000
commitc4d9468ea0e627c69802bd0689c93527dc2e2a85 (patch)
tree0505e005ecc9492a4b759dc8e06eb138613e4aa4 /usr.bin/sed
parent5de15c0508449da98f193b4d397a9750d2494ce3 (diff)
Notes
Diffstat (limited to 'usr.bin/sed')
-rw-r--r--usr.bin/sed/sed.116
1 files changed, 4 insertions, 12 deletions
diff --git a/usr.bin/sed/sed.1 b/usr.bin/sed/sed.1
index becc2412e146..8e0ac07cea30 100644
--- a/usr.bin/sed/sed.1
+++ b/usr.bin/sed/sed.1
@@ -134,9 +134,7 @@ to save all or part of the pattern space for subsequent retrieval.
An address is not required, but if specified must be a number (that counts
input lines
cumulatively across input files), a dollar
-.Po
-.Dq $
-.Pc
+.Pq Dq $
character that addresses the last line of input, or a context address
(which consists of a regular expression preceded and followed by a
delimiter).
@@ -161,9 +159,7 @@ starts looking again for the first address.
.Pp
Editing commands can be applied to non-selected pattern spaces by use
of the exclamation character
-.Po
-.Dq \&!
-.Pc
+.Pq Dq \&!
function.
.Sh "Sed Regular Expressions"
The regular expressions used in
@@ -182,9 +178,7 @@ has the following two additions to regular expressions:
.Bl -enum -compact
.It
In a context address, any character other than a backslash
-.Po
-.Dq \e
-.Pc
+.Pq Dq \e
or newline character may be used to delimit the regular expression.
Also, putting a backslash character before the delimiting character
causes the character to be treated literally.
@@ -400,9 +394,7 @@ Within the RE and the replacement, the RE delimiter itself can be used as
a literal character if it is preceded by a backslash.
.Pp
An ampersand
-.Po
-.Dq &
-.Pc
+.Pq Dq &
appearing in the replacement is replaced by the string matching the RE.
The special meaning of
.Dq &