Re:Awk: The Power and Promise of a 40-Year-Old Language
by greggyb on Tuesday September 07, 2021 @03:03PM
(#28448565)
The POSIX specification includes awk, but not perl or python. The world of UNIX and UNIX-likes is larger than just Linux distributions. Depending on the utility you plan on building and the platforms you expect it to run on, it may be wiser to reach for awk than other PLs.
[ Parent
| on HN ]
Re:Awk: The Power and Promise of a 40-Year-Old Language
by pcwalton on Tuesday September 07, 2021 @04:22PM
(#28449410)
Modern BSDs, macOS, and Solaris certainly have Perl and Python. (iOS and Android don't, but they don't have awk either.) What other Unixes are you thinking of? AIX, HP/UX, IRIX, UnixWare, etc. should be considered retrocomputing at this point and not relevant to modern compatibility discussions.
Linux distros based on busybox, as mentioned elsewhere in this thread, are a more compelling reason for considering awk than considerations involving other Unixes.
Re:Awk: The Power and Promise of a 40-Year-Old Language
by comex on Wednesday September 08, 2021 @02:49AM
(#28453898)
When it comes to Python on macOS, the only version that’s installed by default is the deprecated copy of Python 2.7 that’s slated to be removed in the future. For Python 3, you need to install the developer tools. (/usr/bin/python3 ships with the OS, but is just a stub that runs the developer tools version if installed or prompts you to install it otherwise).
It’s not hard to install, but it’s not guaranteed to already be installed on every system.
Re:Awk: The Power and Promise of a 40-Year-Old Language
by bdk0 on Tuesday September 07, 2021 @05:14PM
(#28450037)
You can install python and perl on BSDs, but its different than awk, where its part of the core OS and guaranteed to be there without needing to install extra stuff.
Re:Awk: The Power and Promise of a 40-Year-Old Language
by cogman10 on Tuesday September 07, 2021 @04:28PM
(#28449503)
Wasn't awk added to android in 9?
Re:Awk: The Power and Promise of a 40-Year-Old Language
by michaelcampbell on Saturday September 11, 2021 @09:38AM
(#28491875)
> The world of UNIX and UNIX-likes is larger than just Linux distributions
The post I was replying to specifically said Linux distros.