diff options
author | Alfred Perlstein <alfred@FreeBSD.org> | 2002-01-30 20:21:18 +0000 |
---|---|---|
committer | Alfred Perlstein <alfred@FreeBSD.org> | 2002-01-30 20:21:18 +0000 |
commit | f0843112af9ba486ec10c280a06fb0e6695020ee (patch) | |
tree | 28aa7fd401e9a85ca350e8188a38d68807e83015 /usr.bin/sed/sed.1 | |
parent | 2e031e8eba932d1e2d14bcbc6a839ff325911d66 (diff) | |
download | src-f0843112af9ba486ec10c280a06fb0e6695020ee.tar.gz src-f0843112af9ba486ec10c280a06fb0e6695020ee.zip |
Backport sed -E support (extended regex support).
Submitted by: Dan Nelson <dnelson@allantgroup.com>
Notes
Notes:
svn path=/stable/3/; revision=89998
Diffstat (limited to 'usr.bin/sed/sed.1')
-rw-r--r-- | usr.bin/sed/sed.1 | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/usr.bin/sed/sed.1 b/usr.bin/sed/sed.1 index 31286c5671fc..936b754c8b20 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 |