4 ms·
Perhaps; but Awk is such a compact approach. My head feels cleaner when using it compared to Perl - perhaps as it's fairly close to C. The interpreter is a si
by gompertz 5y ago
Perhaps; but Awk is such a compact approach. My head feels cleaner when using it compared to Perl - perhaps as it's fairly close to C. The interpreter is a single binary on practically any OS, and is usually around 5MB in size. It's installed by default on essentially every OS (aside from Windows, which is an easy single exe download). Also with implementations like Mawk, it will destroy Perl in speed.
- anthk 5y agoAWK would work greatly well on plan9/9front, as most programs are short and really compact. On "big" Unixen (and I am an OpenBSD/Void user), for larger tools, Perl is preferred. On speed, that doesn't matter. Perl under OpenBSD has a pledge/unveil module, and it's used to write the package manager. Problem solved.
- maximus-decimus 5y agoIf your awk code is more than 20 lines, is it really cleaner?