Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Lord, what fools these mortals be! -- William Shakespeare, "A Midsummer-Night's Dream"


comp / comp.unix.shell / Re: a sed question

SubjectAuthor
* a sed questionSalvador Mirzo
+- Re: a sed questionJohn-Paul Stewart
+* Re: a sed questionRalf Damaschke
|`* Re: a sed questionSalvador Mirzo
| `* Re: a sed questionRalf Damaschke
|  `* Re: a sed questionKenny McCormack
|   `* Re: a sed questionRalf Damaschke
|    `* Re: a sed questionKaz Kylheku
|     +* sed... (Was: a sed question)Kenny McCormack
|     |`* Re: sed... (Was: a sed question)Kaz Kylheku
|     | +* Re: sed... (Was: a sed question)Janis Papanagnou
|     | |`* Re: sed... (Was: a sed question)Janis Papanagnou
|     | | `* Re: sed...Keith Thompson
|     | |  `- Re: sed...Janis Papanagnou
|     | `* Re: sed... (Was: a sed question)Lars Poulsen
|     |  `- Re: sed... (Was: a sed question)Kaz Kylheku
|     +- Re: a sed questionJanis Papanagnou
|     `- Re: a sed questionRalf Damaschke
+* Re: a sed questionJanis Papanagnou
|+* Checking for right # of args in a shell script (Was: a sed question)Kenny McCormack
||`* Re: Checking for right # of args in a shell script (Was: a sed question)Janis Papanagnou
|| `- Re: Checking for right # of args in a shell script (Was: a sed question)Kenny McCormack
|+* Re: a sed questionSalvador Mirzo
||+* Re: a sed questionJanis Papanagnou
|||`* Re: a sed questionKeith Thompson
||| `* Re: a sed questionJanis Papanagnou
|||  +* Re: a sed questionKeith Thompson
|||  |`- Re: a sed questionJanis Papanagnou
|||  `* Re: a sed questionLawrence D'Oliveiro
|||   `- Re: a sed questionJanis Papanagnou
||+* Re: a sed questionAndy Walker
|||+- Re: a sed questionJanis Papanagnou
|||`* Re: a sed questionSalvador Mirzo
||| `- Re: a sed questionJanis Papanagnou
||`- Re: a sed questionHelmut Waitzmann
|`* Re: a sed questionOrdatious
| `- Re: a sed questionJanis Papanagnou
`* Re: a sed questionEd Morton
 `* Re: a sed questionLawrence D'Oliveiro
  +* Re: a sed questionJanis Papanagnou
  |`* Re: a sed questionLawrence D'Oliveiro
  | +* Re: a sed questionKeith Thompson
  | |`* Re: a sed questionLawrence D'Oliveiro
  | | `* Re: a sed questionKeith Thompson
  | |  `* Re: a sed questionLawrence D'Oliveiro
  | |   `* Re: a sed questionKeith Thompson
  | |    `* Re: a sed questionEric Pozharski
  | |     `* Re: a sed questionKenny McCormack
  | |      +- Re: a sed questionKaz Kylheku
  | |      `- Re: a sed questionEric Pozharski
  | `- Re: a sed questionJanis Papanagnou
  +- Re: a sed questionKenny McCormack
  +- Re: a sed questionKaz Kylheku
  `* Re: a sed questionEd Morton
   +- How to solve The Miracle (was Re: a sed question)Janis Papanagnou
   `* Re: a sed questionLawrence D'Oliveiro
    +* Re: a sed questionKeith Thompson
    |`- Re: a sed questionLawrence D'Oliveiro
    `* Re: a sed questionEd Morton
     +- Dealing with four-year-olds... (Was: a sed question)Kenny McCormack
     `* Re: a sed questionLawrence D'Oliveiro
      `* Re: a sed questionKaz Kylheku
       `- Arguing with a four-year-old (Was: a sed question)Kenny McCormack

Pages:123
Subject: Re: a sed question
From: Kenny McCormack
Newsgroups: comp.unix.shell
Organization: The official candy of the new Millennium
Date: Mon, 23 Dec 2024 12:41 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell
Subject: Re: a sed question
Date: Mon, 23 Dec 2024 12:41:57 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vkblqk$22oro$1@news.xmission.com>
References: <874j304vv3.fsf@example.com> <vk89m1$gbta$1@dont-email.me> <87msgourzu.fsf@nosuchdomain.example.com> <slrnvmidnd.9vr.apple.universe@freight.zombinet>
Injection-Date: Mon, 23 Dec 2024 12:41:57 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="2188152"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

In article <slrnvmidnd.9vr.apple.universe@freight.zombinet>,
Eric Pozharski <apple.universe@posteo.net> wrote:
>with <87msgourzu.fsf@nosuchdomain.example.com> Keith Thompson wrote:
>> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>> On Sat, 21 Dec 2024 21:09:25 -0800, Keith Thompson wrote:
>>>> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>>>> On Sat, 21 Dec 2024 16:36:32 -0800, Keith Thompson wrote:
>
>*SKIP* [ 8 lines 5 levels deep] # there isn't anything to see
>
>> I can no longer keep up with the rapid movement of the goalposts. I
>> see no point in continuing this discussion.
>
>Point of this (and many others) discussion is to generate engagement.
>Turns out, talking about lizard people doesn't ignite Usenet. Who knew.

Good one. You really got LDO's number to a T.

The funny thing is: I was the one who first brought up: Wouldn't this all
be easier/better/more-maintainable in AWK. And I knew for a dead cold fact
that mentioning AWK would bring the Perl nuts out of the woodwork to attack
AWK and say how much better it would be to use Perl.

I couldn't have been more prescient.

--
Senator Marsha Blackburn (R-TN), who sits on the Judiciary Committee, said it was
"extremely inappropriate" for the president to nominate a Supreme Court justice on a
day ending with the letter "Y", and she said that "Biden is putting the demands of the
radical progressive left ahead of what is best for our nation."

Subject: Re: a sed question
From: Ed Morton
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Mon, 23 Dec 2024 13:26 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mortonspam@gmail.com (Ed Morton)
Newsgroups: comp.unix.shell
Subject: Re: a sed question
Date: Mon, 23 Dec 2024 07:26:15 -0600
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <vkbodn$17hej$1@dont-email.me>
References: <874j304vv3.fsf@example.com> <vk6if0$2n5s$1@dont-email.me>
<vk7ar2$7g01$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 23 Dec 2024 14:26:15 +0100 (CET)
Injection-Info: dont-email.me; posting-host="3f67f24db71d1a74086d74dab28424e3";
logging-data="1295827"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+yHslbgRMjkTNAWcOI6Jxm"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:LXewNKoKY6VKQy+JbypmiPRrvUU=
In-Reply-To: <vk7ar2$7g01$4@dont-email.me>
Content-Language: en-US
X-Antivirus-Status: Clean
X-Antivirus: Avast (VPS 241223-0, 12/22/2024), Outbound message
View all headers

On 12/21/2024 3:09 PM, Lawrence D'Oliveiro wrote:
> On Sat, 21 Dec 2024 08:13:52 -0600, Ed Morton wrote:
>
>> for anything else you should just use awk ...
>
> If you want to suggest Awk, you might as well use Perl. That does
> everything Awk does, just as concisely, and plenty more besides.

Awk is a mandatory POSIX tool (and so available on all POSIX-compliant
Unix-y systems) with a tiny but powerful language focused on just text
processing, perl is none of that. Also no-one creates cartoons like
https://www.zoitz.com/comics/perl_small.png about awk, nor do they refer
to it as a write-only language, because that is not a common feeling
about the legibility of awk scripts.

Ed.

Subject: Re: a sed question
From: Kaz Kylheku
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Mon, 23 Dec 2024 18:47 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell
Subject: Re: a sed question
Date: Mon, 23 Dec 2024 18:47:02 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <20241223101745.274@kylheku.com>
References: <874j304vv3.fsf@example.com> <vk89m1$gbta$1@dont-email.me>
<87msgourzu.fsf@nosuchdomain.example.com>
<slrnvmidnd.9vr.apple.universe@freight.zombinet>
<vkblqk$22oro$1@news.xmission.com>
Injection-Date: Mon, 23 Dec 2024 19:47:03 +0100 (CET)
Injection-Info: dont-email.me; posting-host="b19b7f02374f283235a320de6dfc1cb0";
logging-data="1405219"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OZmDoumSc97xB0wTUSghwHav9uq+DZyw="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:jN2T4VT+WdfxBFNpJRJqVB/OoLU=
View all headers

On 2024-12-23, Kenny McCormack <gazelle@shell.xmission.com> wrote:
> In article <slrnvmidnd.9vr.apple.universe@freight.zombinet>,
> Eric Pozharski <apple.universe@posteo.net> wrote:
>>with <87msgourzu.fsf@nosuchdomain.example.com> Keith Thompson wrote:
>>> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>>> On Sat, 21 Dec 2024 21:09:25 -0800, Keith Thompson wrote:
>>>>> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>>>>> On Sat, 21 Dec 2024 16:36:32 -0800, Keith Thompson wrote:
>>
>>*SKIP* [ 8 lines 5 levels deep] # there isn't anything to see
>>
>>> I can no longer keep up with the rapid movement of the goalposts. I
>>> see no point in continuing this discussion.
>>
>>Point of this (and many others) discussion is to generate engagement.
>>Turns out, talking about lizard people doesn't ignite Usenet. Who knew.
>
> Good one. You really got LDO's number to a T.

What would his number be good for? Rather, check out what he volunteered about
himself in his LinkedIn profile:

- Somehow got a Master's in CS, back when Wham came out with _Make it Big_.

- After a 1-2 year gap, went back to the same school and worked for 11
years in "user support".

- Then, essentially unemployed since 1997.

- Never worked in the actually industry in any role, let alone as a dev.

I don't know which way to call it: trust fund baby, or else burger flipper?

Oh, but he's got opinions on everything, including cockamamie code
formatting conventions everyone should be using, but nobody in their
right mind would.

P.S. Don't forget to wake me up before you go-go.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Subject: How to solve The Miracle (was Re: a sed question)
From: Janis Papanagnou
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Mon, 23 Dec 2024 20:09 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell
Subject: How to solve The Miracle (was Re: a sed question)
Date: Mon, 23 Dec 2024 21:09:12 +0100
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <vkcg1a$1c1if$1@dont-email.me>
References: <874j304vv3.fsf@example.com> <vk6if0$2n5s$1@dont-email.me>
<vk7ar2$7g01$4@dont-email.me> <vkbodn$17hej$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 23 Dec 2024 21:09:14 +0100 (CET)
Injection-Info: dont-email.me; posting-host="50a2e97f61eba175bd3f95e1bce169b9";
logging-data="1443407"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1937ZKgu2H5qRIf+tcdBDLz"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:MhcfrLddGWlnO/J7DrtitESMLQg=
In-Reply-To: <vkbodn$17hej$1@dont-email.me>
X-Enigmail-Draft-Status: N1110
View all headers

On 23.12.2024 14:26, Ed Morton wrote:
>
> https://www.zoitz.com/comics/perl_small.png [...]

There was a not uncommon gap ("little more detail"[*]) in systems
design; above link can obviously fill that gap of how the "miracle"
might get solved (see updated chart[**]).

Janis

[*] https://www.sjaaklaan.com/images/2014-05/solution-shaping-workshops.jpg

[**] http://volatile.gridbug.de/filling-the-gap.jpg

Subject: Re: a sed question
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Mon, 23 Dec 2024 22:57 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell
Subject: Re: a sed question
Date: Mon, 23 Dec 2024 22:57:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <vkcpt2$1dp54$7@dont-email.me>
References: <874j304vv3.fsf@example.com> <vk6if0$2n5s$1@dont-email.me>
<vk7ar2$7g01$4@dont-email.me> <vkbodn$17hej$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 23 Dec 2024 23:57:38 +0100 (CET)
Injection-Info: dont-email.me; posting-host="87876a170c37f77beaf097aca304cfa7";
logging-data="1500324"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18W3pxRkU07Ll+VUA+u5KAk"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:04AgUwn42ntG19hq5BPegi/WvvE=
View all headers

On Mon, 23 Dec 2024 07:26:15 -0600, Ed Morton wrote:

> Awk is a mandatory POSIX tool (and so available on all POSIX-compliant
> Unix-y systems) with a tiny but powerful language focused on just text
> processing, perl is none of that.

Perl is all of that, and more. Text processing is very much the raison
d’être for Perl. Because it turns out it can get quite complicated.

Subject: Re: a sed question
From: Keith Thompson
Newsgroups: comp.unix.shell
Organization: None to speak of
Date: Mon, 23 Dec 2024 23:06 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S.Thompson+u@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell
Subject: Re: a sed question
Date: Mon, 23 Dec 2024 15:06:39 -0800
Organization: None to speak of
Lines: 14
Message-ID: <871pxyc83k.fsf@nosuchdomain.example.com>
References: <874j304vv3.fsf@example.com> <vk6if0$2n5s$1@dont-email.me>
<vk7ar2$7g01$4@dont-email.me> <vkbodn$17hej$1@dont-email.me>
<vkcpt2$1dp54$7@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 24 Dec 2024 00:06:40 +0100 (CET)
Injection-Info: dont-email.me; posting-host="4356c3497578b1014cbc009b08277c40";
logging-data="1506822"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18JVvkv/Pa4tBfuIEtPF2Yx"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:yVZPQb5va4t8dqRFeViIgEAdkBs=
sha1:axk7KjHiFJ8LQfrhQWAwh6VGpbA=
View all headers

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> On Mon, 23 Dec 2024 07:26:15 -0600, Ed Morton wrote:
>> Awk is a mandatory POSIX tool (and so available on all POSIX-compliant
>> Unix-y systems) with a tiny but powerful language focused on just text
>> processing, perl is none of that.
>
> Perl is all of that, and more. Text processing is very much the raison
> d’être for Perl. Because it turns out it can get quite complicated.

It's not "all of that". Perl is not a mandatory POSIX tool.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */

Subject: Re: a sed question
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Tue, 24 Dec 2024 00:28 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell
Subject: Re: a sed question
Date: Tue, 24 Dec 2024 00:28:09 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <vkcv6p$1f4ve$3@dont-email.me>
References: <874j304vv3.fsf@example.com> <vk6if0$2n5s$1@dont-email.me>
<vk7ar2$7g01$4@dont-email.me> <vkbodn$17hej$1@dont-email.me>
<vkcpt2$1dp54$7@dont-email.me> <871pxyc83k.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 24 Dec 2024 01:28:09 +0100 (CET)
Injection-Info: dont-email.me; posting-host="edef36f048484e23e2423422291f3974";
logging-data="1545198"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+qr1m/I+8HOMJxMmHkuM4V"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:6F+xWsIaCpgsKSh6FORQxrwJ89Q=
View all headers

On Mon, 23 Dec 2024 15:06:39 -0800, Keith Thompson wrote:

> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>
>> On Mon, 23 Dec 2024 07:26:15 -0600, Ed Morton wrote:
>>>
>>> Awk is a mandatory POSIX tool (and so available on all POSIX-compliant
>>> Unix-y systems) with a tiny but powerful language focused on just text
>>> processing, perl is none of that.
>>
>> Perl is all of that, and more. Text processing is very much the raison
>> d’être for Perl. Because it turns out it can get quite complicated.
>
> It's not "all of that". Perl is not a mandatory POSIX tool.

Nobody cares.

Subject: Re: a sed question
From: Ed Morton
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Tue, 24 Dec 2024 12:20 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mortonspam@gmail.com (Ed Morton)
Newsgroups: comp.unix.shell
Subject: Re: a sed question
Date: Tue, 24 Dec 2024 06:20:18 -0600
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <vke8u3$1rdnq$1@dont-email.me>
References: <874j304vv3.fsf@example.com> <vk6if0$2n5s$1@dont-email.me>
<vk7ar2$7g01$4@dont-email.me> <vkbodn$17hej$1@dont-email.me>
<vkcpt2$1dp54$7@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 24 Dec 2024 13:20:20 +0100 (CET)
Injection-Info: dont-email.me; posting-host="7e3d1526f60308a485a62853ab335ce5";
logging-data="1947386"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BMSpF5cbxftklr8vy1K/M"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:gC6GX8tXSFEQmYD+RngZzc0WJAo=
Content-Language: en-US
X-Antivirus: Avast (VPS 241224-2, 12/24/2024), Outbound message
In-Reply-To: <vkcpt2$1dp54$7@dont-email.me>
X-Antivirus-Status: Clean
View all headers

On 12/23/2024 4:57 PM, Lawrence D'Oliveiro wrote:
> On Mon, 23 Dec 2024 07:26:15 -0600, Ed Morton wrote:
>
>> Awk is a mandatory POSIX tool (and so available on all POSIX-compliant
>> Unix-y systems) with a tiny but powerful language focused on just text
>> processing, perl is none of that.
>
> Perl is all of that, and more. Text processing is very much the raison
> d’être for Perl. Because it turns out it can get quite complicated.

Is perl a mandatory POSIX tool? No.
Does perl have a tiny language? No.
Is perl focused on just text processing? No.

So, is perl a mandatory POSIX tool with a tiny language focused on just
text processing? No, as previously mentioned, perl is none of that.

Ed.

Subject: Dealing with four-year-olds... (Was: a sed question)
From: Kenny McCormack
Newsgroups: comp.unix.shell
Organization: The official candy of the new Millennium
Date: Tue, 24 Dec 2024 12:58 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell
Subject: Dealing with four-year-olds... (Was: a sed question)
Date: Tue, 24 Dec 2024 12:58:42 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vkeb62$241pq$1@news.xmission.com>
References: <874j304vv3.fsf@example.com> <vkbodn$17hej$1@dont-email.me> <vkcpt2$1dp54$7@dont-email.me> <vke8u3$1rdnq$1@dont-email.me>
Injection-Date: Tue, 24 Dec 2024 12:58:42 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="2230074"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

In article <vke8u3$1rdnq$1@dont-email.me>,
Ed Morton <mortonspam@gmail.com> wrote:
>On 12/23/2024 4:57 PM, Lawrence D'Oliveiro wrote:
>> On Mon, 23 Dec 2024 07:26:15 -0600, Ed Morton wrote:
>>
>>> Awk is a mandatory POSIX tool (and so available on all POSIX-compliant
>>> Unix-y systems) with a tiny but powerful language focused on just text
>>> processing, perl is none of that.
>>
>> Perl is all of that, and more. Text processing is very much the raison
>> dtre for Perl. Because it turns out it can get quite complicated.
>
>Is perl a mandatory POSIX tool? No.
>Does perl have a tiny language? No.
>Is perl focused on just text processing? No.
>
>So, is perl a mandatory POSIX tool with a tiny language focused on just
>text processing? No, as previously mentioned, perl is none of that.

Does it feel like you are explaining things to a four-year-old?

Because I think you are. And doing a fine job of it.

--
Joni Ernst (2014): Obama should be impeached because 2 people have died of Ebola.
Joni Ernst (2020): Trump is doing great things, because only 65,000 times as many people have died of COVID-19.

Josef Stalin (1947): When one person dies, it is a tragedy; when a million die, it is merely statistics.

Subject: Re: a sed question
From: Eric Pozharski
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Tue, 24 Dec 2024 11:20 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: apple.universe@posteo.net (Eric Pozharski)
Newsgroups: comp.unix.shell
Subject: Re: a sed question
Date: Tue, 24 Dec 2024 11:20:06 +0000
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <slrnvml676.fp8.apple.universe@freight.zombinet>
References: <874j304vv3.fsf@example.com> <vk89m1$gbta$1@dont-email.me>
<87msgourzu.fsf@nosuchdomain.example.com>
<slrnvmidnd.9vr.apple.universe@freight.zombinet>
<vkblqk$22oro$1@news.xmission.com>
Injection-Date: Tue, 24 Dec 2024 19:33:14 +0100 (CET)
Injection-Info: dont-email.me; posting-host="bbe2dbf79fce28715e9a18c9b143db26";
logging-data="2091868"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tjvlZ8hN0dvM30TBYAFJ0"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:0Yf0xqsyl4CSm7wt288l+Pt1ZuE=
View all headers

with <vkblqk$22oro$1@news.xmission.com> Kenny McCormack wrote:
> In article <slrnvmidnd.9vr.apple.universe@freight.zombinet>,
> Eric Pozharski <apple.universe@posteo.net> wrote:
>>with <87msgourzu.fsf@nosuchdomain.example.com> Keith Thompson wrote:
>>> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>>> On Sat, 21 Dec 2024 21:09:25 -0800, Keith Thompson wrote:
>>>>> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>>>>> On Sat, 21 Dec 2024 16:36:32 -0800, Keith Thompson wrote:

>>*SKIP* [ 8 lines 5 levels deep] # there isn't anything to see
>>> I can no longer keep up with the rapid movement of the goalposts. I
>>> see no point in continuing this discussion.
>> Point of this (and many others) discussion is to generate engagement.
>> Turns out, talking about lizard people doesn't ignite Usenet. Who
>> knew.
> Good one. You really got LDO's number to a T.
> The funny thing is: I was the one who first brought up: Wouldn't this
> all be easier/better/more-maintainable in AWK. And I knew for a dead
> cold fact that mentioning AWK would bring the Perl nuts out of the
> woodwork to attack AWK and say how much better it would be to use
> Perl.
> I couldn't have been more prescient.

Thank you for this clear demonstration of how engagement is laid out.

p.s. You do understand that you don't make sense?

p.p.s. You don't have to! It's engagement!

--
Torvalds' goal for Linux is very simple: World Domination
Stallman's goal for GNU is even simpler: Freedom

Subject: Re: a sed question
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Tue, 24 Dec 2024 20:57 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell
Subject: Re: a sed question
Date: Tue, 24 Dec 2024 20:57:44 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <vkf788$2130s$5@dont-email.me>
References: <874j304vv3.fsf@example.com> <vk6if0$2n5s$1@dont-email.me>
<vk7ar2$7g01$4@dont-email.me> <vkbodn$17hej$1@dont-email.me>
<vkcpt2$1dp54$7@dont-email.me> <vke8u3$1rdnq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 24 Dec 2024 21:57:45 +0100 (CET)
Injection-Info: dont-email.me; posting-host="edef36f048484e23e2423422291f3974";
logging-data="2133020"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zRHQ6zMwAzLCWzdRhrOGT"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:a3fuK9G1+AFOZtD1IvQChL9w0S8=
View all headers

On Tue, 24 Dec 2024 06:20:18 -0600, Ed Morton wrote:

> Is perl a mandatory POSIX tool? No.

Nobody cares. POSIX compliance is just a means to an end not an end in
itself. Linux pays attention to POSIX where it matters, and ignores it
where it doesn’t.

This is one case where it doesn’t.

Subject: Re: a sed question
From: Kaz Kylheku
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Tue, 24 Dec 2024 21:46 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell
Subject: Re: a sed question
Date: Tue, 24 Dec 2024 21:46:56 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <20241224133404.617@kylheku.com>
References: <874j304vv3.fsf@example.com> <vk6if0$2n5s$1@dont-email.me>
<vk7ar2$7g01$4@dont-email.me> <vkbodn$17hej$1@dont-email.me>
<vkcpt2$1dp54$7@dont-email.me> <vke8u3$1rdnq$1@dont-email.me>
<vkf788$2130s$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 24 Dec 2024 22:46:56 +0100 (CET)
Injection-Info: dont-email.me; posting-host="b4d3f8a7043ba28d4466580c3b0f5c3d";
logging-data="2148661"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vTo+MDoJDgHCQNMbfAOnTEXGHetFGG4M="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:LAWUtNR6xLaPsJqSQ7DAOOmWPcM=
View all headers

On 2024-12-24, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On Tue, 24 Dec 2024 06:20:18 -0600, Ed Morton wrote:
>
>> Is perl a mandatory POSIX tool? No.
>
> Nobody cares.

That is a false. Enough vendors and system integrators care that you
can hardly log into any Linux box that doesn't have some kind of awk.
Even small IoT devices or consumer routers.

(If it doesn't have Awk, it's almost certainly not going to have Perl.)

The BusyBox project, a popular project that provides userland utilities
for small systems packaged into a single executable, has its own BusyBox
Awk, which is how a good many small embedded systems get their Awk.

BusyBox Awk is implemented in one 100,000 character source file
(that probably relies on some BusyBox library infrastructure.)

There is no BuxyBox Perl and likely won't be any time soon.

> POSIX compliance is just a means to an end not an end in
> itself. Linux pays attention to POSIX where it matters, and ignores it
> where it doesn’t.

That is true, but one area where it matters is in having Awk on a
system, so that shell scripts which rely on Awk do not break.

> This is one case where it doesn’t.

That is nothing but a statement of your personal preference or wishful
thinking, not reflecting the facts of the world at large: as in,
what is widely deployed out there and can be counted on.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Subject: Arguing with a four-year-old (Was: a sed question)
From: Kenny McCormack
Newsgroups: comp.unix.shell
Organization: The official candy of the new Millennium
Date: Tue, 24 Dec 2024 23:53 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell
Subject: Arguing with a four-year-old (Was: a sed question)
Date: Tue, 24 Dec 2024 23:53:38 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vkfhi2$24kpt$1@news.xmission.com>
References: <874j304vv3.fsf@example.com> <vke8u3$1rdnq$1@dont-email.me> <vkf788$2130s$5@dont-email.me> <20241224133404.617@kylheku.com>
Injection-Date: Tue, 24 Dec 2024 23:53:38 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="2249533"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

In article <20241224133404.617@kylheku.com>,
Kaz Kylheku <643-408-1753@kylheku.com> wrote:
....
>> This is one case where it doesnt.
>
>That is nothing but a statement of your personal preference or wishful
>thinking, not reflecting the facts of the world at large: as in,
>what is widely deployed out there and can be counted on.

Arguing with a 4 year old again, are we?

--
People sleep peaceably in their beds at night only because rough
men stand ready to do violence on their behalf.

George Orwell

Pages:123

rocksolid light 0.9.8
clearnet tor