[RndTbl] "A Little Quiz"

Peter O'Gorman peter at pogma.com
Wed Nov 3 09:49:47 CDT 2010


First, I disagree with the assertion that there are only two common 
versions of awk on UNIX systems :)

As for the answer -

It was fixed on 20090726.

Using a zero index is wrong, though, as noted in that ChangeLog entry.


substr(s, m[, n  ])
     Return the at most n-character substring of s that begins at 
position m, numbering from 1. If n is omitted, or if n specifies more 
characters than are left in the string, the length of the substring 
shall be limited by the length of the string s.

Yes, I just got this months newsletter :-)


More information about the Roundtable mailing list