[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New feature suggestion: "r" command to accept address zero
From: |
Jim Meyering |
Subject: |
Re: New feature suggestion: "r" command to accept address zero |
Date: |
Sat, 14 Aug 2021 08:10:42 +0200 |
On Fri, Aug 13, 2021 at 11:45 PM Assaf Gordon <assafgordon@gmail.com> wrote:
> 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.
Thank you. only minor suggestions:
diff --git a/doc/sed.texi b/doc/sed.texi
index a92ca3a..8628402 100644
--- a/doc/sed.texi
+++ b/doc/sed.texi
@@ -4837,7 +4837,7 @@ sed -i '1i/* Copyright (C) FOO BAR */' *.c
@codequoteundirected off
@codequotebacktick off
-@exdent Adding few lines is possible using @samp{\n} in the text:
+@exdent Adding a few lines is possible using @samp{\n} in the text:
@codequoteundirected on
@codequotebacktick on
@@ -4916,8 +4916,8 @@ $ sed -i '1rLIC.TXT' *.py *.sh
@codequotebacktick off
The above @command{sed} commands can be combined with @command{find}
-to locate files all subdirectories, @command{xargs} to run additional
-commands on found files, @command{grep} to filter out files that already
+to locate files in all subdirectories, @command{xargs} to run additional
+commands on selected files and @command{grep} to filter out files that already
contain a copyright notice:
@codequoteundirected on