Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #226380
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: POSIX compliant sed making newline character |
| Date | 2020-08-21 21:00 +0200 |
| Message-ID | <AGkqB-86N-1@gated-at.bofh.it> (permalink) |
| References | <AGjkR-7v0-1@gated-at.bofh.it> <AGjuy-7ye-9@gated-at.bofh.it> <AGjEd-7QM-1@gated-at.bofh.it> <AGk7f-805-3@gated-at.bofh.it> <AGk7f-805-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 8/21/2020 8:37 PM, Greg Wooledge wrote:
> On Fri, Aug 21, 2020 at 02:35:35PM -0400, Greg Wooledge wrote:
>> No. Use $'...' instead of '...'.
>>
>> sed '/line1/{N;N;a line-to-add\n}' input-file
>
> Crap. Of course I meant to write
>
> sed $'/line1/{N;N;a line-to-add\n}' input-file
>
Okay, it uses the same syntax as for a subshell '$()'.
Next step is to find a way in which I can use variable substitution.
I appriciate your help Greg.
--
John Doe
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
POSIX compliant sed making newline character john doe <johndoe65534@mail.com> - 2020-08-21 19:50 +0200
Re: POSIX compliant sed making newline character Greg Wooledge <wooledg@eeg.ccf.org> - 2020-08-21 20:00 +0200
Re: POSIX compliant sed making newline character john doe <johndoe65534@mail.com> - 2020-08-21 20:10 +0200
Re: POSIX compliant sed making newline character Greg Wooledge <wooledg@eeg.ccf.org> - 2020-08-21 20:40 +0200
Re: POSIX compliant sed making newline character Greg Wooledge <wooledg@eeg.ccf.org> - 2020-08-21 20:40 +0200
Re: POSIX compliant sed making newline character john doe <johndoe65534@mail.com> - 2020-08-21 21:00 +0200
Re: POSIX compliant sed making newline character john doe <johndoe65534@mail.com> - 2020-08-21 21:10 +0200
Re: POSIX compliant sed making newline character Andrei POPESCU <andreimpopescu@gmail.com> - 2020-08-22 18:40 +0200
Re: POSIX compliant sed making newline character john doe <johndoe65534@mail.com> - 2020-08-22 20:50 +0200
Re: POSIX compliant sed making newline character Greg Wooledge <wooledg@eeg.ccf.org> - 2020-08-21 21:10 +0200
csiph-web