Category talk:AWK: Difference between revisions

 
Line 24:
<lang awk>$ uname -a
NetBSD sdf 8.0_RC1 NetBSD 8.0_RC1 (GENERIC) #6: Thu Apr 26 07:48:08 EDT 2018 christos@sixthavenue.astron.com:/usr/src/sys/arch/amd64/compile/GENERIC amd64
$ awk 'BEGIN { print "0x1f"+0 }'
31
$ awk 'BEGIN { print strtonum("0x1f") }'
Line 33:
Ok, GNU utilities are known to get bloated by tons of features until they are capable of doing everything except making coffee but in this case GAWK seems to have done a step away from MAWK and NetBSD's AWK. From the original AWK too? How does the oldest AWK you can get your hands on behave for...
<lang awk>$ awk 'BEGIN { print "0x1f"+0 }'</lang>
 
--[[User:Yeti|Yeti]] ([[User talk:Yeti|talk]]) 01:01, 1 July 2018 (UTC)
169

edits