Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: "Amadeusz Żołnowski" <aidecoe@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] eutils.eclass: Add awk wrapper - eawk - edit file in place
Date: Sat, 21 May 2016 14:58:27
Message-Id: 20160521145816.GC26300@vapier.lan
In Reply to: Re: [gentoo-dev] [PATCH] eutils.eclass: Add awk wrapper - eawk - edit file in place by "Amadeusz Żołnowski"
1 On 20 May 2016 21:09, Amadeusz Żołnowski wrote:
2 > Mike Frysinger <vapier@g.o> writes:
3 > > On 18 May 2016 22:25, aidecoe@g.o wrote:
4 > >> awk doesn't have the -i option like sed and if editing file in place is
5 > >> desired, additional steps are required. eawk uses tmp file to make it
6 > >> look to the caller editing happens in place.
7 > >
8 > > what's your real use case ? i've never once thought "man, i wish i could
9 > > run an awk script and modify a file in place". and i write awk most days.
10 >
11 > The same "sed -i" is used. I have some configs to edit in place in
12 > src_prepare(). It's easier with awk rather than sed.
13
14 again, provide an example. one or two uncommon use cases doesn't justify
15 being added to eutils.
16 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies