4 ms·
Nice project! It's only very old awks that don't support functions (like BSD awk does and nawk does on SunOS but /usr/bin/awk doesn't) and the GNU docs have an
by mzs 6y ago
Nice project! It's only very old awks that don't support functions (like BSD awk does and nawk does on SunOS but /usr/bin/awk doesn't) and the GNU docs have an implementation of strtonum: https://www.gnu.org/software/gawk/manual/html_node/Strtonum-Function.html https://www.gnu.org/software/gawk/manual/html_node/Strtonum-...
- wahern 6y agoPOSIX awk supports user-defined functions. I'm surprised Solaris' default awk doesn't, but /usr/xpg4/bin/awk does support user-defined functions. (I just confirmed both behaviors on Solaris 11.4.)