Deutsch   English   Français   Italiano  
<slrnvtudg4.7lj.anthk@openbsd.home>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: anthk <anthk@openbsd.home>
Newsgroups: comp.unix.shell
Subject: Re: a sed question
Date: Sun, 23 Mar 2025 09:45:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <slrnvtudg4.7lj.anthk@openbsd.home>
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>
 <vkcv6p$1f4ve$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 23 Mar 2025 10:45:59 +0100 (CET)
Injection-Info: dont-email.me; posting-host="75a144a27b5ff7d82eb2ed9490a1c124";
	logging-data="2206823"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/Zl/VDi45+ZntVrJ0vkVjx"
User-Agent: slrn/1.0.3 (OpenBSD)
Cancel-Lock: sha1:hNTO+EFsGHKeLrKZr6ubiAThzhk=
Bytes: 2342

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.