| Newsgroups |
gmane.editors.sed.user |
| Message-ID |
<[email protected]> |
> Out of curiosity, what sed doesn't do `-E`?
None of the gnu sed documentation mentions -E (big E) option. So I think it's understandable someone might be confused by -E syntax. However, GNU sed allows the (undocumented) -E as a -r synonym. In a kind of mirror image, some BSD sed versions allow the -r as a -E synonym.
Personally, given the few number of sed options, and -e (little e) already used so much, -r seems the preferable syntax, but it does not really matter.
To clear up things in case anyone not sure, when extended regular expressions are allowed in a sed version, -E / -r tells sed to turn it on. An example is to use cleaner s/(..)(..)/\2\1/ instead of s/\(..\)\(..\)/\2\1/ syntax.
Daniel
[Non-text portions of this message have been removed]