Re: Unifying BSD sed -E and GNU sed -r options?

Dan Kegel <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <CAPF-yOY82fdXk9RL6J0ctEjM8MWS-BAaw+4ndVWQzZh-UgiqBQ@mail.gmail.com>
Oh.  Duh.  Problem solved.  Thanks!
- Dan


On Tue, Jan 21, 2014 at 11:40 AM, Davide Brini <[email protected]> wrote:
>> Dan Kegel wrote:
>>
>> Right, but for now, I have to check platform before using it, e.g.
>>
>>  case $_os in
>>  osx*) xregx=-E;;
>>  *) xregx=-r;;
>>  esac
>>  ... sed $xregx ...
>
> But I'm saying exactly that you *can* use -E with GNU sed. Or maybe I don't get what you mean.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.