Sujet : Re: "sed" question
De : toylet.toylet (at) *nospam* gmail.com (Mr. Man-wai Chang)
Groupes : comp.lang.awkDate : 11. Mar 2024, 12:38:42
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <usmqg3$3j5ib$3@toylet.eternal-september.org>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
On 10/3/2024 12:52 am, Ed Morton wrote:
About 20 or so years ago we had a discussion in this NG (which I'm not
going to search for now) and, shockingly, a consensus was reached that
we should encourage people to always write:
'{$2="1-1"} 1'
instead of:
$2="1-1"
unless they NEED the result of the action to be evaluated as a
condition, for that very reason.
You might Google about it, but Google has unplugged its Usenet support. I dunno whether you could search old Usenet messages. There is still Wayback Machine archive.
awk '{$2="1-1"} 1' - Google Search
<
https://www.google.com/search?q=awk+%27%7B%242%3D%221-1%22%7D+1%27>
Internet Archive: Wayback Machine
<
https://archive.org/web/>
Google Groups ditches links to Usenet, the OG social network • The Register
<
https://www.theregister.com/2023/12/18/google_ends_usenet_links/>