shell脚本之数组与随机数

数组 1.数组的定义方法web 方法1:面试 [root@localhost mnt]# array1=(1 2 3) ##输出数组的全部元素 [root@localhost mnt]# echo ${array1[*]} 1 2 3 [root@localhost mnt]# echo ${array1[@]} 1 2 3 方法2:vim [root@localhost mnt]# array2
相关文章
相关标签/搜索