arrays - nawk 中的数组大小

标签 arrays nawk

我正在阅读 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/

相关文章:

c++ - 数组的迭代方向

arrays - 确保相邻位置没有两只猫或狗所需的最少交换次数

javascript - 如何使用纯 JS 创建 5 个 <p>,其中包含 5 个文本节点

unix - awk 和 nawk 的不同结果

arrays - 为什么常量不能用作 Common Lisp 类型说明符中的数组维度?

javascript - 将php数组值循环到html数据属性

linux - AWK:有没有办法限制输出字段的宽度?

unix - Awk 和多文件处理可能吗?

LINUX Shell脚本将行转换为多列