• Re: a sed question

    From anthk@anthk@openbsd.home to comp.unix.shell on Sun Mar 23 09:45:58 2025
    From Newsgroup: comp.unix.shell

    On 2024-12-24, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
    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
    drCO|-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.

    AWK user there. AWK can do lots of stuff if you learn it well. And it will serve your everywhere. Perl is nice, but AWK has no ambiguities as Perl has.

    Read The AWK Programming Language. Get the AWK examples from gopher://hoi.st, https://luxferre.top and comp.lang.awk. You have games like freecell, tetris, sokoban, gemini:// clients, potential gopher clients and a lot more.
    Not just for the classical TSV/CSV text processing.
    OFC Perl can do a lot more, but, as I said, it doesn't need a C compiler
    on your side to compile needed CPAN modules.

    --- Synchronet 3.21b-Linux NewsLink 1.2
  • From Lawrence D'Oliveiro@ldo@nz.invalid to comp.unix.shell on Sun Mar 23 23:41:00 2025
    From Newsgroup: comp.unix.shell

    On Sun, 23 Mar 2025 09:45:58 -0000 (UTC), anthk wrote:

    Perl is nice, but AWK has no ambiguities as Perl has.

    What exactly are these rCLambiguitiesrCY, for example?

    OFC Perl can do a lot more, but, as I said, it doesn't need a C compiler
    on your side to compile needed CPAN modules.

    Can AWK do it without a C compiler?
    --- Synchronet 3.21b-Linux NewsLink 1.2