From: Mike Frysinger <vapier@gentoo.org>
To: "Amadeusz Żołnowski" <aidecoe@gentoo.org>
Cc: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] [PATCH] eutils.eclass: Add awk wrapper - eawk - edit file in place
Date: Sat, 21 May 2016 10:58:16 -0400 [thread overview]
Message-ID: <20160521145816.GC26300@vapier.lan> (raw)
In-Reply-To: <87k2iowkxe.fsf@freja.aidecoe.name>
[-- Attachment #1: Type: text/plain, Size: 757 bytes --]
On 20 May 2016 21:09, Amadeusz Żołnowski wrote:
> Mike Frysinger <vapier@gentoo.org> writes:
> > On 18 May 2016 22:25, aidecoe@gentoo.org wrote:
> >> awk doesn't have the -i option like sed and if editing file in place is
> >> desired, additional steps are required. eawk uses tmp file to make it
> >> look to the caller editing happens in place.
> >
> > what's your real use case ? i've never once thought "man, i wish i could
> > run an awk script and modify a file in place". and i write awk most days.
>
> The same "sed -i" is used. I have some configs to edit in place in
> src_prepare(). It's easier with awk rather than sed.
again, provide an example. one or two uncommon use cases doesn't justify
being added to eutils.
-mike
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-05-21 14:58 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-18 21:25 [gentoo-dev] [PATCH] eutils.eclass: Add awk wrapper - eawk - edit file in place aidecoe
2016-05-18 22:28 ` Göktürk Yüksek
2016-05-18 22:53 ` Amadeusz Żołnowski
2016-05-18 23:31 ` Göktürk Yüksek
2016-05-19 0:09 ` Jeroen Roovers
2016-05-19 2:02 ` Göktürk Yüksek
2016-05-19 9:35 ` Ulrich Mueller
2016-05-19 17:51 ` Amadeusz Żołnowski
2016-05-19 18:13 ` Mart Raudsepp
2016-05-19 18:35 ` Ulrich Mueller
2016-05-19 20:04 ` Amadeusz Żołnowski
2016-05-20 9:31 ` Ulrich Mueller
2016-05-18 22:43 ` Robin H. Johnson
2016-05-19 21:50 ` Amadeusz Żołnowski
2016-05-19 22:04 ` Robin H. Johnson
2016-05-20 17:42 ` Amadeusz Żołnowski
2016-05-21 12:20 ` Amadeusz Żołnowski
2016-05-19 23:16 ` Mart Raudsepp
2016-05-19 23:29 ` Göktürk Yüksek
2016-05-20 3:07 ` Mike Frysinger
2016-05-20 16:49 ` Amadeusz Żołnowski
2016-05-20 3:08 ` Mike Frysinger
2016-05-20 19:32 ` Patrice Clement
2016-05-20 19:47 ` rindeal
2016-05-20 20:09 ` Amadeusz Żołnowski
2016-05-21 14:58 ` Mike Frysinger [this message]
2016-05-21 16:08 ` Amadeusz Żołnowski
2016-05-21 16:27 ` Kristian Fiskerstrand
2016-05-22 0:45 ` Mike Frysinger
2016-05-22 7:17 ` [gentoo-dev] Closed: " Amadeusz Żołnowski
2016-05-22 7:45 ` [gentoo-dev] " Michał Górny
2016-05-21 12:45 ` aidecoe
2016-05-21 13:41 ` [gentoo-dev] " Amadeusz Żołnowski
2016-05-21 13:49 ` [gentoo-dev] " aidecoe
2016-05-21 20:38 ` Michał Górny
2016-05-21 21:20 ` Amadeusz Żołnowski
-- strict thread matches above, loose matches on Subject: below --
2016-05-20 18:34 rindeal
2016-05-20 20:02 ` Amadeusz Żołnowski
2016-05-20 20:35 ` rindeal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160521145816.GC26300@vapier.lan \
--to=vapier@gentoo.org \
--cc=aidecoe@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox