Sujet : Re: a sed question
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.unix.shellDate : 22. Dec 2024, 02:22:18
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vk7pkb$a6l9$1@dont-email.me>
References : 1 2 3 4 5
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 22.12.2024 01:28, Lawrence D'Oliveiro wrote:
On Sun, 22 Dec 2024 01:02:03 +0100, Janis Papanagnou wrote:
The advantage of Awk is that it's standard on Unix systems ...
On my Debian system:
ldo@theon:~> apt-cache rdepends gawk | wc -l
89
ldo@theon:~> apt-cache rdepends perl | wc -l
1121
Let’s just say, you’re more likely to find Perl than Awk on a Linux
system ...
My comment was on Unix systems (not specifically Linux) and on
the Unix standards (POSIX).
Not sure what you read and understood where I wrote "standard".
Awk is demanded by POSIX, Perl isn't.
So on any standard conforming Unix you are guaranteed to *have*
a 'sh' (POSIX-shell) and an 'awk'. Moreover, even if you are
developing on a system with Perl, but will have to implement
(run) the software in a different environment, you may not be
allowed to install third party software (open or else) with it.
(One may not like such company policies but they are reality.)
Janis