Sujet : Re: a sed question
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.unix.shellDate : 22. Dec 2024, 01:02:03
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vk7kts$9evn$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 21.12.2024 22:09, Lawrence D'Oliveiro wrote:
On Sat, 21 Dec 2024 08:13:52 -0600, Ed Morton wrote:
for anything else you should just use awk ...
(I wouldn't formulate it that way. - Just for the record.)
If you want to suggest Awk, you might as well use Perl.
(Unfortunately no.)
That does
everything Awk does, just as concisely, and plenty more besides.
(Features are not the whole story.)
The advantage of Awk is that it's standard on Unix systems and can
thus also be used in restricted professional environments (that are
not uncommon as I experienced).
There's yet more advantages, like (compared to Perl) legible syntax
and being a terse language that you can quickly learn (and master).
(I've elsethread mentioned R.Loui's examination of learning curves;
he compared Perl and Awk in that respect, and Perl was, expectedly,
much worse concerning that.)
I know you're a fan of Perl, so I finish my post with the comment
that Perl has other strengths. (Or Python, or <insert your favorite
tool here>, etc.)
Janis