Categories Java Linux

[Linux] – Working with arrays in bash

Khởi tạo array:

array=(1234 3241 2343234)
array=("first element" "second element")

Khởi tạo với index:

array=([3]='fourth element' [4]='fifth element')

Gán giá trị:

array[0] = 1234

More From Author

Leave a Reply

Your email address will not be published. Required fields are marked *