Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.unix.shell > #25973 > unrolled thread

a sed question

Started bySalvador Mirzo <smirzo@example.com>
First post2024-12-18 16:46 -0300
Last post2024-12-24 23:53 +0000
Articles 5 on this page of 65 — 15 participants

Back to article view | Back to comp.unix.shell


Contents

  a sed question Salvador Mirzo <smirzo@example.com> - 2024-12-18 16:46 -0300
    Re: a sed question John-Paul Stewart <jpstewart@personalprojects.net> - 2024-12-18 15:12 -0500
    Re: a sed question Ralf Damaschke <rwspam@gmx.de> - 2024-12-19 01:14 +0000
      Re: a sed question Salvador Mirzo <smirzo@example.com> - 2024-12-19 09:05 -0300
        Re: a sed question Ralf Damaschke <rwspam@gmx.de> - 2024-12-20 00:55 +0000
          Re: a sed question gazelle@shell.xmission.com (Kenny McCormack) - 2024-12-20 12:44 +0000
            Re: a sed question Ralf Damaschke <rwspam@gmx.de> - 2024-12-21 00:17 +0000
              Re: a sed question Kaz Kylheku <643-408-1753@kylheku.com> - 2024-12-21 03:09 +0000
                sed... (Was: a sed question) gazelle@shell.xmission.com (Kenny McCormack) - 2024-12-21 03:36 +0000
                  Re: sed... (Was: a sed question) Kaz Kylheku <643-408-1753@kylheku.com> - 2024-12-21 03:57 +0000
                    Re: sed... (Was: a sed question) Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-21 15:38 +0100
                      Re: sed... (Was: a sed question) Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-21 17:29 +0100
                        Re: sed... Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-21 14:23 -0800
                          Re: sed... Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-22 00:33 +0100
                    Re: sed... (Was: a sed question) Lars Poulsen <lars@cleo.beagle-ears.com> - 2024-12-21 21:46 +0000
                      Re: sed... (Was: a sed question) Kaz Kylheku <643-408-1753@kylheku.com> - 2024-12-22 21:22 +0000
                Re: a sed question Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-21 15:35 +0100
                Re: a sed question Ralf Damaschke <rwspam@gmx.de> - 2024-12-22 00:43 +0000
    Re: a sed question Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-20 15:55 +0100
      Checking for right # of args in a shell script (Was: a sed question) gazelle@shell.xmission.com (Kenny McCormack) - 2024-12-20 15:11 +0000
        Re: Checking for right # of args in a shell script (Was: a sed question) Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-20 16:49 +0100
          Re: Checking for right # of args in a shell script (Was: a sed question) gazelle@shell.xmission.com (Kenny McCormack) - 2024-12-20 17:43 +0000
      Re: a sed question Salvador Mirzo <smirzo@example.com> - 2024-12-21 09:17 -0300
        Re: a sed question Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-21 16:19 +0100
          Re: a sed question Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-21 13:41 -0800
            Re: a sed question Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-22 00:50 +0100
              Re: a sed question Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-21 16:26 -0800
                Re: a sed question Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-22 01:41 +0100
              Re: a sed question Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-22 00:31 +0000
                Re: a sed question Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-22 02:06 +0100
        Re: a sed question Andy Walker <anw@cuboid.co.uk> - 2024-12-21 15:34 +0000
          Re: a sed question Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-21 17:14 +0100
          Re: a sed question Salvador Mirzo <smirzo@example.com> - 2024-12-21 15:21 -0300
            Re: a sed question Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-21 20:48 +0100
        Re: a sed question Helmut Waitzmann <nn.throttle@xoxy.net> - 2024-12-21 19:20 +0100
      Re: a sed question Ordatious <order@order.invalid> - 2024-12-22 09:19 +0000
        Re: a sed question Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-22 19:23 +0100
    Re: a sed question Ed Morton <mortonspam@gmail.com> - 2024-12-21 08:13 -0600
      Re: a sed question Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-21 21:09 +0000
        Re: a sed question Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-22 01:02 +0100
          Re: a sed question Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-22 00:28 +0000
            Re: a sed question Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-21 16:36 -0800
              Re: a sed question Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-22 01:52 +0000
                Re: a sed question Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-21 21:09 -0800
                  Re: a sed question Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-22 05:56 +0000
                    Re: a sed question Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-21 22:55 -0800
                      Re: a sed question Eric Pozharski <apple.universe@posteo.net> - 2024-12-23 10:09 +0000
                        Re: a sed question gazelle@shell.xmission.com (Kenny McCormack) - 2024-12-23 12:41 +0000
                          Re: a sed question Kaz Kylheku <643-408-1753@kylheku.com> - 2024-12-23 18:47 +0000
                          Re: a sed question Eric Pozharski <apple.universe@posteo.net> - 2024-12-24 11:20 +0000
            Re: a sed question Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-22 02:22 +0100
        Re: a sed question gazelle@shell.xmission.com (Kenny McCormack) - 2024-12-22 01:09 +0000
        Re: a sed question Kaz Kylheku <643-408-1753@kylheku.com> - 2024-12-22 20:03 +0000
        Re: a sed question Ed Morton <mortonspam@gmail.com> - 2024-12-23 07:26 -0600
          How to solve The Miracle (was Re: a sed question) Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-23 21:09 +0100
          Re: a sed question Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-23 22:57 +0000
            Re: a sed question Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-23 15:06 -0800
              Re: a sed question Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-24 00:28 +0000
                Re: a sed question anthk <anthk@openbsd.home> - 2025-03-23 09:45 +0000
                  Re: a sed question Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-23 23:41 +0000
            Re: a sed question Ed Morton <mortonspam@gmail.com> - 2024-12-24 06:20 -0600
              Dealing with four-year-olds... (Was: a sed question) gazelle@shell.xmission.com (Kenny McCormack) - 2024-12-24 12:58 +0000
              Re: a sed question Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-24 20:57 +0000
                Re: a sed question Kaz Kylheku <643-408-1753@kylheku.com> - 2024-12-24 21:46 +0000
                  Arguing with a four-year-old (Was: a sed question) gazelle@shell.xmission.com (Kenny McCormack) - 2024-12-24 23:53 +0000

Page 4 of 4 — ← Prev page 1 2 3 [4]


#26034

FromEd Morton <mortonspam@gmail.com>
Date2024-12-24 06:20 -0600
Message-ID<vke8u3$1rdnq$1@dont-email.me>
In reply to#26031
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.

[toc] | [prev] | [next] | [standalone]


#26035 — Dealing with four-year-olds... (Was: a sed question)

Fromgazelle@shell.xmission.com (Kenny McCormack)
Date2024-12-24 12:58 +0000
SubjectDealing with four-year-olds... (Was: a sed question)
Message-ID<vkeb62$241pq$1@news.xmission.com>
In reply to#26034
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.

[toc] | [prev] | [next] | [standalone]


#26037

FromLawrence D'Oliveiro <ldo@nz.invalid>
Date2024-12-24 20:57 +0000
Message-ID<vkf788$2130s$5@dont-email.me>
In reply to#26034
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.

[toc] | [prev] | [next] | [standalone]


#26038

FromKaz Kylheku <643-408-1753@kylheku.com>
Date2024-12-24 21:46 +0000
Message-ID<20241224133404.617@kylheku.com>
In reply to#26037
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

[toc] | [prev] | [next] | [standalone]


#26039 — Arguing with a four-year-old (Was: a sed question)

Fromgazelle@shell.xmission.com (Kenny McCormack)
Date2024-12-24 23:53 +0000
SubjectArguing with a four-year-old (Was: a sed question)
Message-ID<vkfhi2$24kpt$1@news.xmission.com>
In reply to#26038
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

[toc] | [prev] | [standalone]


Page 4 of 4 — ← Prev page 1 2 3 [4]

Back to top | Article view | comp.unix.shell


csiph-web