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: Assaf Gordon
Subject: Re: manual improvements: section+examples of D/N/H/P commands
Date: Wed, 28 Dec 2016 22:45:33 -0500

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]


regards,
 - assaf



Attachment: sed-doc-multiline-2.patch.xz
Description: Binary data




reply via email to

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