[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: |
John Cowan |
Subject: |
Re: A suggestion to add to gnu ed: command line option to start on line foo or bar. |
Date: |
Thu, 2 Mar 2023 04:26:49 -0500 |
Ok, thanks.
On Thu, Mar 2, 2023 at 3:21 AM Shawn Wagner <shawnw.mobile@gmail.com> wrote:
> 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".
>>
>