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
相關文章
相關標籤/搜索