I am not sure which BSD are you referring, but my OpenBSD 6.0 system does
document -E:
SED(1) General Commands Manual
SED(1)
NAME
sed - stream editor
SYNOPSIS
sed [-aEnru] [-i[extension]] command [file ...]
sed [-aEnru] [-e command] [-f command_file] [-i[extension]] [file ...]
DESCRIPTION
The sed utility reads the specified files, or the standard input if no
files are specified, modifying the input as specified by a list of
commands. The input is then written to the standard output.
A single command may be specified as the first argument to sed.
Multiple
commands may be specified separated by newlines or semicolons, or by
using the -e or -f options. All commands are applied to the input in
the
order they are specified regardless of their origin.
The options are as follows:
-a The files listed as parameters for the w function or flag are
created (or truncated) before any processing begins, by
default.
The -a option causes sed to delay opening each file until a
command containing the related w function or flag is applied
to a
line of input.
-E Interpret regular expressions using POSIX extended regular
expression syntax. The default behaviour is to use POSIX
basic
regular expression syntax.
Š
Thanks.
-ag
Post by Stephane Chazelas ***@gmail.com [sed-users]Post by ***@hotmail.com [sed-users]Surprisingly , gnu sed --help doesn't showup the "-E" option
while it does take it sed -E "..." without any errors.
BTW, the "-r" option is supposed to be doing this.
This definitely calls for an update of the GNU sed help options.
[...]
GNU sed came first with -r. Then, BSD added -E for the same
thing (which makes a lot more sense and is consistent with grep
for instance).
Then GNU grep added -E as a synonymous of -r for compatibility
with BSD but decided to leave it undocumented..
Then POSIX talked of specifying sed -E (likely to be in the next
major version).
Then GNU grep eventually documented -E (though there hasn't been
a new released since yet I beleive).
--
Stephane
------------------------------------
------------------------------------
--
------------------------------------
Yahoo Groups Links
------------------------------------
------------------------------------
--
------------------------------------
Yahoo Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/sed-users/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/sed-users/join
(Yahoo! ID required)
<*> To change settings via email:
sed-users-***@yahoogroups.com
sed-users-***@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
sed-users-***@yahoogroups.com
<*> Your use of Yahoo Groups is subject to:
https://info.yahoo.com/legal/us/yahoo/utos/terms/