Deutsch   English   Français   Italiano  
<683295c2$0$687$14726298@news.sunsite.dk>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.nobody.at!weretis.net!feeder8.news.weretis.net!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
From: mack@the-knife.org (Mack The Knife)
Newsgroups: comp.lang.awk
Subject: Re: GNU Awk - inplace editing
References: <100p11m$3uh3m$1@dont-email.me>
Organization: Knife Sharpeners, Inc.
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: arnold@skeeve.com (Aharon Robbins)
Date: 25 May 2025 04:00:02 GMT
Lines: 20
Message-ID: <683295c2$0$687$14726298@news.sunsite.dk>
NNTP-Posting-Host: 0020e557.news.sunsite.dk
X-Trace: 1748145602 news.sunsite.dk 687 arnold@skeeve.com/147.236.215.54:57272
X-Complaints-To: staff@sunsite.dk
Bytes: 1501

In article <100p11m$3uh3m$1@dont-email.me>,
Janis Papanagnou  <janis_papanagnou+ng@hotmail.com> 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?)

You are 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.
> ....
>Does anyone know that reason or remember a rationale? - I don't recall
>any discussions about that...

It was done with an extension because the maintainer saw no
reason to add Yet Another Option and Still More Code That Would
See Very Little Use into the main core of gawk.