sed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: manual improvements: section+examples of D/N/H/P commands


From: Jim Meyering
Subject: Re: manual improvements: section+examples of D/N/H/P commands
Date: Thu, 29 Dec 2016 22:07:13 +0100

On Thu, Dec 29, 2016 at 8:41 AM, Jim Meyering <address@hidden> wrote:
> On Thu, Dec 29, 2016 at 4:45 AM, Assaf Gordon <address@hidden> wrote:
>> Hello Jim,
>>
>> Thanks for the prompt the thorough review!
>>
>> I'm sending updated patches for completeness, which include your 
>> typo/grammar suggestions, and slightly modified 'doubled-word' examples.
>>
>> I've adjusted the examples based on your suggestion, which works for 
>> multilines as well:
>>
>>   $ printf "aaa the\nthe bbb\n" | sed -En '{N; /\b(\w+)\s+\1\b/{=;p} ; D}'
>>   2
>>   aaa the
>>   the bbb
>>
>>   $ printf "aaa the\nthen bbb\n" | sed -En '{N; /\b(\w+)\s+\1\b/{=;p} ; D}'
>>   [empty]
>
> Looks fine. I see you spotted/fixed at least one other nit.

Please push.
As soon as that's pushed, I'll begin to prepare the release --
probably tomorrow.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]