| Deutsch English Français Italiano |
|
<1010bjr$1l25i$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.lang.awk Subject: Re: GNU Awk - inplace editing Date: Mon, 26 May 2025 02:11:38 +0200 Organization: A noiseless patient Spider Lines: 35 Message-ID: <1010bjr$1l25i$1@dont-email.me> References: <100p11m$3uh3m$1@dont-email.me> <100vuff$1i1nb$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Date: Mon, 26 May 2025 02:11:40 +0200 (CEST) Injection-Info: dont-email.me; posting-host="22c98a28c814af92d924add8511b6aff"; logging-data="1738930"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19yWFQT+6yDMCUKARGh0M/i" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:uKw4lUP/xSl+GL6ZArk2qm34cf4= X-Enigmail-Draft-Status: N1110 In-Reply-To: <100vuff$1i1nb$1@dont-email.me> Bytes: 2358 On 25.05.2025 22:27, Ed Morton wrote: > On 5/23/2025 12:28 AM, Janis Papanagnou wrote: >> In GNU Awk I was looking for the in-place option (similar to sed -i). >> I thought there once was some _simple_ option usable from the command >> line. (Or am I misremembering?) >> >> The manual now suggests to use a GNU Awk "inplace" _Extension_ for that >> gawk -i inplace ... >> and >> gawk -i inplace -v inplace::suffix=.bak ... >> respectively. >> >> That's not exactly as simple to use as, say, >> gawk -i ... >> and >> gawk -i.bak >> so I suppose there's a reason for the added complexity in the handling. >> >> Does anyone know that reason or remember a rationale? - I don't recall >> any discussions about that... > > The somewhat lengthy discussion at > https://lists.gnu.org/archive/html/bug-gawk/2012-12/msg00046.html may > (or may not) be useful. Hi Ed, this is very valuable, and more than I expected; it has some technical discussions, it shows the "feelings", opinions and rationales, and all around it. Also the contained link to the Usenet discussions from that time (where we participated, obviously) was a good addition, and also to recall the thoughts, wishes and doubts we had back then. - Thanks! Janis