bug-ed
[Top][All Lists]
Advanced

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

Re: A suggestion to add to gnu ed: command line option to start on line


From: Shawn Wagner
Subject: Re: A suggestion to add to gnu ed: command line option to start on line foo or bar.
Date: Thu, 2 Mar 2023 00:21:16 -0800

This one's already present with the number in the command suffix:
s/foo/bar/2

On Thu, Mar 2, 2023, 12:10 AM John Cowan <cowan@ccil.org> wrote:

> On Wed, Mar 1, 2023 at 8:16 PM John Cowan <cowan@ccil.org> wrote:
>
> > Great, thanks!  These are in no particular order:
> >
>
> I missed one.
>
> Digit string between the letter of the s command and the first delimiter:
> Indicates that the nth (rather than the first or all) match is replaced.
> This means that digits can't be used as delimiters (which although
> currently legal would be a Bad Thing anyway); POSIXLY_CORRECT would
> override this feature and allow "s0foo0bar0".
>


reply via email to

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