shell腳本之數組與隨機數

數組 1.數組的定義方法 方法1: [[email protected] mnt]# array1=(1 2 3) ##輸出數組的所有元素 [[email protected] mnt]# echo ${array1[*]} 1 2 3 [[email protected] mnt]# echo ${array1[@]} 1 2 3 方法2: [[email protected] mnt]# ar
相關文章
相關標籤/搜索