4 ms·
I'm sorry, where does Awk run but Perl and Python don't? If we're counting minimalist implementations, there's micropython that even runs on microcontrollers t
by unmole 3y ago
I'm sorry, where does Awk run but Perl and Python don't?
If we're counting minimalist implementations, there's micropython that even runs on microcontrollers that cost a less than 2 dollars.
- dredmorbius 3y agoThe POSIX standard mandates awk. It does not mandate Perl or Python. <https://pubs.opengroup.org/onlinepubs/9699919799/utilities/awk.html https://pubs.opengroup.org/onlinepubs/9699919799/utilities/a...> <https://pubs.opengroup.org/onlinepubs/9699919799/utilities/contents.html https://pubs.opengroup.org/onlinepubs/9699919799/utilities/c...> There are many systems which lack Perl or Python, but include awk. You might be carrying an Android device at the moment --- if you drop to its default userland, that provides a bunch of utilities, including awk, via Busybox. But not, so far as I'm aware, either Perl or Python. (You can of course install Termux which will then give you both Perl and Python, along with Node.js, ruby, and a whole slew of other scripting and compiled languages. But so long as we're considering stock installs, it's sed and awk.)
- paleface 3y agoSmall, embedded, busybox systems - per the parent comment.
- unmole 3y agoLike I said, MicroPython can run even on microcontrollers.
- paleface 3y agoI think parent may be more implying “living off the land” situations. Awk is ubiquitous, and part of the POSIX standard. Micro Python, not so much. I’m a big fan of Forth, but it’s not available everywhere. One has to adapt.