数组
直接赋值
[root@localhost ~]# z[1]=1
[root@localhost ~]# z[2]=2
[root@localhost ~]# echo ${z[1]}
1
[root@localhost ~]# echo ${z[2]}
2
批量赋值
[root@localhost ~]# z=(0 1 2)
[root@localhost ~]# echo $z
0
[root@localhost ~]# echo ${z[0]}
0
[root@localhost ~]# echo ${z[1]}
1
[root@localhost ~]# echo ${z[2]}
2
[root@localhost ~]# echo ${z[*]}
0 1 2