3 ms·
Nit: awk is a POSIX tool, and has multiple implementations that you've probably used (Debian/Ubuntu comes with mawk, and Mac OS with nawk). [1]: http://pubs.op
by tannhaeuser 9y ago
Nit: awk is a POSIX tool, and has multiple implementations that you've probably used (Debian/Ubuntu comes with mawk, and Mac OS with nawk).
[1]: http://pubs.opengroup.org/onlinepubs/009695399/utilities/awk.html http://pubs.opengroup.org/onlinepubs/009695399/utilities/awk...
- jwilk 9y agoBesides mawk and gawk, Debian ships also the original awk: https://www.cs.princeton.edu/~bwk/btl.mirror/ https://www.cs.princeton.edu/~bwk/btl.mirror/
- tannhaeuser 9y agoYes, and it works well on Debian. But I can't recommend switching to gawk on Ubuntu. [1]: https://askubuntu.com/questions/1011414/gawk-is-crashing-for-complex-regexp-when-lang-is-set-to-utf-8-on-16-04 https://askubuntu.com/questions/1011414/gawk-is-crashing-for...
- dancek 9y agoTo nitpick even more, gawk (GNU Awk) is a superset of POSIX Awk. I'm not very familiar with the differences, but I always use specifically gawk---I got too annoyed with some of the BSD userland that ships with macOS, and learned to prefer GNU versions.