summaryrefslogtreecommitdiffstats
path: root/usr.bin/sed/sed.1
diff options
context:
space:
mode:
authorssouhlal <ssouhlal@FreeBSD.org>2007-07-04 16:42:41 +0000
committerssouhlal <ssouhlal@FreeBSD.org>2007-07-04 16:42:41 +0000
commite75185f7f5535425e6275fd11573ca3630df635b (patch)
treeace649ddfd510577b7ffbba46012b768a27d0dde /usr.bin/sed/sed.1
parent2e6ed0bb0287a6dbda884e9b1969bf9a332e41dd (diff)
downloadFreeBSD-src-e75185f7f5535425e6275fd11573ca3630df635b.zip
FreeBSD-src-e75185f7f5535425e6275fd11573ca3630df635b.tar.gz
Add case-insensitive matching to sed, using the 'I' flag, similarly to GNU sed.
For example, sed /foo/Id sed s/foo/bar/Ig Reviewed by: dds Approved by: re (hrs)
Diffstat (limited to 'usr.bin/sed/sed.1')
-rw-r--r--usr.bin/sed/sed.112
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.bin/sed/sed.1 b/usr.bin/sed/sed.1
index 0dca613..71f3a9d 100644
--- a/usr.bin/sed/sed.1
+++ b/usr.bin/sed/sed.1
@@ -191,7 +191,10 @@ option was specified);
.It
a context address
that consists of a regular expression preceded and followed by a
-delimiter.
+delimiter. The closing delimiter can also optionally be followed by the
+.Dq I
+character, to indicate that the regular expression is to be matched
+in a case-insensitive way.
.El
.Pp
A command line with no addresses selects every pattern space.
@@ -490,6 +493,8 @@ Append the pattern space to
if a replacement was made.
If the replacement string is identical to that which it replaces, it
is still considered to have been a replacement.
+.It I
+Match the regular expression in a case-insensitive way.
.El
.Pp
.It [2addr]t [label]
@@ -582,7 +587,10 @@ The
.Fl E , I , a
and
.Fl i
-options are non-standard
+options, as well as the
+.Dq I
+flag to the address regular expression and substitution command are
+non-standard
.Fx
extensions and may not be available on other operating systems.
.Sh HISTORY
OpenPOWER on IntegriCloud