|
From: | Assaf Gordon |
Subject: | Re: New feature suggestion: "r" command to accept address zero |
Date: | Fri, 13 Aug 2021 15:44:49 -0600 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 |
On 2021-08-13 4:39 a.m., Jim Meyering wrote:
On Wed, Aug 11, 2021 at 9:27 PM Assaf Gordon <assafgordon@gmail.com> wrote:The 'r' command can be used with address zero, effectively prepending a file to the beginning of the input file, e.g.: sed '0rA.TXT' B.TXT > C.TXT
I like the idea. And the code. Nice work. That all looks fine (of course modulo missing documentation).
Thanks. Attached updated patch with documentation. -assaf
0001-sed-allow-0rFILE-insert-FILE-before-the-first-line.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |