Paolo Bonzini | 25 Jul 2012 15:16
Picon
Gravatar

Re: Insert the content of a file (with command r?)

 

Il 25/07/2012 15:10, Davide Brini ha scritto:
>>>>> /pattern/ {
>>>>> > >> > r file.txt
>>>>> > >> > a
>>>>> > >> > d
>>>>> > >> > }
>>>>> > >> >
>>>>> > >> > Similarly, "A" would put the cufirst line of pattern space on the
>>>>> > >> > append ring.
>>>>> > >> >
>>>>> > >> > Opinions?
>>> > > AFAICT the "a" command already exists and has different syntax and
>>> > > semantics. Perhaps a GNU sed extension using a new command altogether?
>> >
>> > The "a" command without arguments is an error right now.
> Ah, now I see what you meant. Personally, I'd find this overloading a bit
> confusing. This is just my opinion, of course.

Me too, actually. I was just looking for a second opinion.

"A" for "append current pattern space" is even more confusing because it
would be different from other uppercase commands.

Paolo

__._,_.___
Recent Activity:
    --
    .

    __,_._,___

    Gmane