sed-devel
[Top][All Lists]
Advanced

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

Re: expanding sed's manual with more examples


From: Jim Meyering
Subject: Re: expanding sed's manual with more examples
Date: Sun, 2 Oct 2016 21:16:07 -0700

On Sun, Oct 2, 2016 at 7:51 PM, Assaf Gordon <address@hidden> wrote:
> Hello,
>
> Prompted by a question to sed-devel@ ( 
> http://lists.gnu.org/archive/html/sed-devel/2016-10/msg00000.html ),
>
> Attached are few additions to the documentation.
> They add examples of each of the common commands,
> And expand the a,y commands.
> It makes the documentation a bit more verbose, but I believe it's better to 
> be verbose than terse (in this case).
>
>
>   doc: add examples to the 'Often-Used Commands' section
>   doc: add example to the 'y///' command
>   doc: expand the 'a' command, add examples
>
>  doc/sed-in.texi | 173 
> +++++++++++++++++++++++++++++++++++++++++++++++++++-----
>  doc/sed.texi    | 173 
> +++++++++++++++++++++++++++++++++++++++++++++++++++-----
>  2 files changed, 316 insertions(+), 30 deletions(-)
>
> If this is a good direction, I'll similarly expand the rest of the commands.

Very nice. Thank you.
TIL:

address@hidden provides an extension address syntax of @address@hidden
+to acheive the same result:
+
address@hidden
+$ seq 6 | sed '0~3s/./x/'
+1
+2
+x
+4
+5
+x
address@hidden example



reply via email to

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