我正在阅读 Introduction to Arrays对于nawk
它说:
Arrays in awk superficially resemble arrays in other programming languages; but there are fundamental differences. In awk, you don't need to specify the size of an array before you start to use it.
那么我在那个数组中可以拥有的成员的限制是多少?我怎么知道的?这是容易出错的吗? (因为我知道它不可能是无限的 :D)
最佳答案
nawk 从经验上对各种事物都有限制,尽管我不知道它们是什么,也找不到引用。然而 gawk 不是这样,如果你想安全地防止达到限制,试试 gawk。引用这里:
http://oreilly.com/catalog/unixnut3/chapter/ch11.html#ch11_09.htm
关于arrays - nawk 中的数组大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6917683/