Groups | Search | Server Info | Login | Register
Groups > comp.lang.awk > #9968
| Path | csiph.com!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 | GNU Awk - inplace editing |
| Date | Fri, 23 May 2025 07:28:20 +0200 |
| Organization | A noiseless patient Spider |
| Lines | 20 |
| Message-ID | <100p11m$3uh3m$1@dont-email.me> (permalink) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Fri, 23 May 2025 07:28:22 +0200 (CEST) |
| Injection-Info | dont-email.me; posting-host="5879c210c8b875af6b242e8502084993"; logging-data="4146294"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yZ7eBgxEZm6Ex5lzmHyCY" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
| Cancel-Lock | sha1:GW+nwQd/L1DkmvMS+3C9X7ciy+k= |
| X-Mozilla-News-Host | news://news.eternal-september.org:119 |
| X-Enigmail-Draft-Status | N1110 |
| Xref | csiph.com comp.lang.awk:9968 |
Show key headers only | View raw
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... Janis
Back to comp.lang.awk | Previous | Next — Next in thread | Find similar
GNU Awk - inplace editing Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-05-23 07:28 +0200
Re: GNU Awk - inplace editing Kaz Kylheku <643-408-1753@kylheku.com> - 2025-05-23 06:02 +0000
Re: GNU Awk - inplace editing gazelle@shell.xmission.com (Kenny McCormack) - 2025-05-23 08:22 +0000
Re: GNU Awk - inplace editing Kaz Kylheku <643-408-1753@kylheku.com> - 2025-05-23 08:58 +0000
Re: GNU Awk - inplace editing Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-05-23 16:08 +0200
Re: GNU Awk - inplace editing mack@the-knife.org (Mack The Knife) - 2025-05-25 04:00 +0000
Re: GNU Awk - inplace editing Ed Morton <mortonspam@gmail.com> - 2025-05-25 15:27 -0500
Re: GNU Awk - inplace editing Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-05-26 02:11 +0200
csiph-web