摘要: 一、定义方法1:可以用数值作数组索引(下标)Tarray[1]=“cheng mo”Tarray[2]=“800927”2:可以用字符串作数组索引(下标)Tarray[“first”]=“cheng ”Tarray[“last”]=”mo”Tarray[“birth”]=”800927”使用中 print Tarray[1] 将得到”cheng mo” 而 print Tarray[2] 和 print[“birth”] 都将得到 ”800927” 。二、数组相关函数[chengmo@localhost ~]$ awk --versionGNU Awk 3.1.5使用版本是:3.1以上,不同版 阅读全文