Gentoo Archives: gentoo-dev

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

Attachments

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

Replies