summaryrefslogtreecommitdiffstats
path: root/usr.bin/sed/sed.1
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2000-03-19 19:41:53 +0000
committergreen <green@FreeBSD.org>2000-03-19 19:41:53 +0000
commitf556f75f097948e646fbe6280de86340d9c61536 (patch)
treea0145a0375e2ba963ee958d5f9b063f3b096f96f /usr.bin/sed/sed.1
parent064bd228d5ad21266eb47066be18837efeaf9435 (diff)
downloadFreeBSD-src-f556f75f097948e646fbe6280de86340d9c61536.zip
FreeBSD-src-f556f75f097948e646fbe6280de86340d9c61536.tar.gz
Add a new flag: -E enables "extended" regular expressions.
Diffstat (limited to 'usr.bin/sed/sed.1')
-rw-r--r--usr.bin/sed/sed.118
1 files changed, 13 insertions, 5 deletions
diff --git a/usr.bin/sed/sed.1 b/usr.bin/sed/sed.1
index 31286c5..936b754 100644
--- a/usr.bin/sed/sed.1
+++ b/usr.bin/sed/sed.1
@@ -43,11 +43,11 @@
.Nd stream editor
.Sh SYNOPSIS
.Nm sed
-.Op Fl an
+.Op Fl Ean
.Ar command
.Op Ar file ...
.Nm sed
-.Op Fl an
+.Op Fl Ean
.Op Fl e Ar command
.Op Fl f Ar command_file
.Op Ar file ...
@@ -70,6 +70,11 @@ regardless of their origin.
.Pp
The following options are available:
.Bl -tag -width indent
+.It Fl E
+Interpret regular expressions as extended (modern) regular expressions
+rather than basic regular expressions (BRE's). The
+.Xr re_format 7
+manual page fully describes both formats.
.It Fl a
The files listed as parameters for the
.Dq w
@@ -164,10 +169,13 @@ The
.Nm
regular expressions are basic regular expressions (BRE's, see
.Xr regex 3
-for more information).
-In addition,
+for more information) by default.
+.Nm
+can use extended (modern) regular expressions instead if the
+.Fl E
+flag is given. In addition,
.Nm
-has the following two additions to BRE's:
+has the following two additions to regular expressions:
.sp
.Bl -enum -compact
.It
OpenPOWER on IntegriCloud