Sujet : Re: a sed question
De : anthk (at) *nospam* openbsd.home (anthk)
Groupes : comp.unix.shellDate : 23. Mar 2025, 10:45:58
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <slrnvtudg4.7lj.anthk@openbsd.home>
References : 1 2 3 4 5 6 7
User-Agent : slrn/1.0.3 (OpenBSD)
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
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.
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.