[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unifying BSD sed -E and GNU sed -r options?
From: |
Dan Kegel |
Subject: |
Re: Unifying BSD sed -E and GNU sed -r options? |
Date: |
Tue, 21 Jan 2014 11:55:39 -0800 |
Oh. Duh. Problem solved. Thanks!
- Dan
On Tue, Jan 21, 2014 at 11:40 AM, Davide Brini <address@hidden> 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.