Re: GNU Awk - inplace editing

Liste des GroupesRevenir à cl awk 
Sujet : Re: GNU Awk - inplace editing
De : mortonspam (at) *nospam* gmail.com (Ed Morton)
Groupes : comp.lang.awk
Date : 25. May 2025, 21:27:27
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <100vuff$1i1nb$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
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.
Ed.

Date Sujet#  Auteur
23 May 25 * GNU Awk - inplace editing8Janis Papanagnou
23 May 25 +- Re: GNU Awk - inplace editing1Kaz Kylheku
23 May 25 +* Re: GNU Awk - inplace editing3Kenny McCormack
23 May 25 i`* Re: GNU Awk - inplace editing2Kaz Kylheku
23 May 25 i `- Re: GNU Awk - inplace editing1Janis Papanagnou
25 May 25 +- Re: GNU Awk - inplace editing1Mack The Knife
25 May 25 `* Re: GNU Awk - inplace editing2Ed Morton
26 May 25  `- Re: GNU Awk - inplace editing1Janis Papanagnou

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal